diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-11-03 12:10:03 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-11-03 12:10:03 +0000 |
commit | e0cd0b84f308de4f4cb1e7c67fedbe18adedb7fb (patch) | |
tree | 52c9693886e3cd7812b77aa0f6fc16f8ceaca1b7 /uisimulator | |
parent | 97f6c46fe9cf25b6f4ea1c0e1712a060f6ce5b57 (diff) | |
download | rockbox-e0cd0b84f308de4f4cb1e7c67fedbe18adedb7fb.tar.gz rockbox-e0cd0b84f308de4f4cb1e7c67fedbe18adedb7fb.zip |
fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15431 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/sdl/button.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 8694a837b0..975a32c768 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c @@ -86,12 +86,13 @@ bool remote_button_hold(void) { } #endif -static int lastbtn; void button_event(int key, bool pressed) { int new_btn = 0; int diff = 0; + int data = 0; static int count = 0; + static int lastbtn; static int repeat_speed = REPEAT_INTERVAL_START; static int repeat_count = 0; static bool repeat = false; @@ -103,7 +104,6 @@ void button_event(int key, bool pressed) #endif #endif static bool usb_connected = false; - int data = 0; if (usb_connected && key != SDLK_u) return; switch (key) @@ -744,7 +744,7 @@ void button_event(int key, bool pressed) #ifdef HAVE_REMOTE_LCD if (btn & BUTTON_REMOTE) { if (!remote_filter_first_keypress || is_remote_backlight_on()) - queue_post(&button_queue, btn, data0); + queue_post(&button_queue, btn, data); else skip_remote_release = true; } |