filename | src/hotkeys.c |
changeset | 1019:87f191f92f8f |
prev | 1015:ad448bedc48a |
next | 1024:c67f2d61ab97 |
author | nkeynes |
date | Wed Jun 03 10:29:16 2009 +0000 (12 years ago) |
permissions | -rw-r--r-- |
last change | Allow multiple input hooks to be registered for the same key - useful to allow eg binding the same hotkey for run/stop so that it works as a toggle. |
file | annotate | diff | log | raw |
1.1 --- a/src/hotkeys.c Tue Jun 02 23:16:26 2009 +00001.2 +++ b/src/hotkeys.c Wed Jun 03 10:29:16 2009 +00001.3 @@ -112,14 +112,14 @@1.4 static void hotkey_resume_callback( void *mdev, uint32_t value, uint32_t pressure, gboolean isKeyDown )1.5 {1.6 if (isKeyDown && !dreamcast_is_running() ) {1.7 - gui_run_later();1.8 + gui_do_later(dreamcast_run);1.9 }1.10 }1.12 static void hotkey_stop_callback( void *mdev, uint32_t value, uint32_t pressure, gboolean isKeyDown )1.13 {1.14 if (isKeyDown && dreamcast_is_running() ) {1.15 - dreamcast_stop();1.16 + gui_do_later(dreamcast_stop);1.17 }1.18 }
.