diff options
Diffstat (limited to 'uisimulator/sdl/button.c')
-rw-r--r-- | uisimulator/sdl/button.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index f5da828914..6f274dd56d 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c | |||
@@ -49,7 +49,7 @@ struct event_queue button_queue; | |||
49 | 49 | ||
50 | static int btn = 0; /* Hopefully keeps track of currently pressed keys... */ | 50 | static int btn = 0; /* Hopefully keeps track of currently pressed keys... */ |
51 | 51 | ||
52 | #ifdef CONFIG_BACKLIGHT | 52 | #if CONFIG_BACKLIGHT |
53 | static bool filter_first_keypress; | 53 | static bool filter_first_keypress; |
54 | 54 | ||
55 | void set_backlight_filter_keypress(bool value) | 55 | void set_backlight_filter_keypress(bool value) |
@@ -76,7 +76,7 @@ void button_event(int key, bool pressed) | |||
76 | static int repeat_count = 0; | 76 | static int repeat_count = 0; |
77 | static bool repeat = false; | 77 | static bool repeat = false; |
78 | static bool post = false; | 78 | static bool post = false; |
79 | #ifdef CONFIG_BACKLIGHT | 79 | #if CONFIG_BACKLIGHT |
80 | static bool skip_release = false; | 80 | static bool skip_release = false; |
81 | #ifdef HAVE_REMOTE_LCD | 81 | #ifdef HAVE_REMOTE_LCD |
82 | static bool skip_remote_release = false; | 82 | static bool skip_remote_release = false; |
@@ -520,7 +520,7 @@ void button_event(int key, bool pressed) | |||
520 | diff = btn ^ lastbtn; | 520 | diff = btn ^ lastbtn; |
521 | if(diff && (btn & diff) == 0) | 521 | if(diff && (btn & diff) == 0) |
522 | { | 522 | { |
523 | #ifdef CONFIG_BACKLIGHT | 523 | #if CONFIG_BACKLIGHT |
524 | #ifdef HAVE_REMOTE_LCD | 524 | #ifdef HAVE_REMOTE_LCD |
525 | if(diff & BUTTON_REMOTE) | 525 | if(diff & BUTTON_REMOTE) |
526 | if(!skip_remote_release) | 526 | if(!skip_remote_release) |
@@ -587,7 +587,7 @@ void button_event(int key, bool pressed) | |||
587 | if (queue_empty(&button_queue)) | 587 | if (queue_empty(&button_queue)) |
588 | { | 588 | { |
589 | queue_post(&button_queue, BUTTON_REPEAT | btn, 0); | 589 | queue_post(&button_queue, BUTTON_REPEAT | btn, 0); |
590 | #ifdef CONFIG_BACKLIGHT | 590 | #if CONFIG_BACKLIGHT |
591 | #ifdef HAVE_REMOTE_LCD | 591 | #ifdef HAVE_REMOTE_LCD |
592 | if(btn & BUTTON_REMOTE) | 592 | if(btn & BUTTON_REMOTE) |
593 | { | 593 | { |
@@ -604,7 +604,7 @@ void button_event(int key, bool pressed) | |||
604 | } | 604 | } |
605 | else | 605 | else |
606 | { | 606 | { |
607 | #ifdef CONFIG_BACKLIGHT | 607 | #if CONFIG_BACKLIGHT |
608 | #ifdef HAVE_REMOTE_LCD | 608 | #ifdef HAVE_REMOTE_LCD |
609 | if (btn & BUTTON_REMOTE) { | 609 | if (btn & BUTTON_REMOTE) { |
610 | if (!remote_filter_first_keypress || is_remote_backlight_on()) | 610 | if (!remote_filter_first_keypress || is_remote_backlight_on()) |