fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15431 a1c6a512-1295-4272-9138-f99709370657
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 8694a83..975a32c 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -86,12 +86,13 @@
}
#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 @@
#endif
#endif
static bool usb_connected = false;
- int data = 0;
if (usb_connected && key != SDLK_u)
return;
switch (key)
@@ -744,7 +744,7 @@
#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;
}