summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/sdl/button.c')
-rw-r--r--uisimulator/sdl/button.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 4b03008497..0c5f4f7d0b 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -49,7 +49,7 @@ struct event_queue button_queue;
static int btn = 0; /* Hopefully keeps track of currently pressed keys... */
-#if CONFIG_BACKLIGHT
+#ifdef HAVE_BACKLIGHT
static bool filter_first_keypress;
void set_backlight_filter_keypress(bool value)
@@ -90,7 +90,7 @@ void button_event(int key, bool pressed)
static int repeat_count = 0;
static bool repeat = false;
static bool post = false;
-#if CONFIG_BACKLIGHT
+#ifdef HAVE_BACKLIGHT
static bool skip_release = false;
#ifdef HAVE_REMOTE_LCD
static bool skip_remote_release = false;
@@ -568,7 +568,7 @@ void button_event(int key, bool pressed)
diff = btn ^ lastbtn;
if(diff && (btn & diff) == 0)
{
-#if CONFIG_BACKLIGHT
+#ifdef HAVE_BACKLIGHT
#ifdef HAVE_REMOTE_LCD
if(diff & BUTTON_REMOTE)
if(!skip_remote_release)
@@ -635,7 +635,7 @@ void button_event(int key, bool pressed)
if (queue_empty(&button_queue))
{
queue_post(&button_queue, BUTTON_REPEAT | btn, 0);
-#if CONFIG_BACKLIGHT
+#ifdef HAVE_BACKLIGHT
#ifdef HAVE_REMOTE_LCD
if(btn & BUTTON_REMOTE)
{
@@ -652,7 +652,7 @@ void button_event(int key, bool pressed)
}
else
{
-#if CONFIG_BACKLIGHT
+#ifdef HAVE_BACKLIGHT
#ifdef HAVE_REMOTE_LCD
if (btn & BUTTON_REMOTE) {
if (!remote_filter_first_keypress || is_remote_backlight_on())