summaryrefslogtreecommitdiff
path: root/firmware/drivers/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r--firmware/drivers/button.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 16c0d2c..171acaa 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -33,7 +33,7 @@
#include "serial.h"
#include "power.h"
#include "powermgmt.h"
-#ifdef SIMULATOR
+#ifdef HAVE_SDL
#include "button-sdl.h"
#else
#include "button-target.h"
@@ -215,7 +215,7 @@ static void button_tick(void)
/* Safety net for players without hardware
poweroff */
-#ifndef SIMULATOR
+#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
if(repeat_count > POWEROFF_COUNT * 10)
power_off();
#endif
@@ -440,7 +440,7 @@ static int button_flip(int button)
{
int newbutton = button;
-#ifndef SIMULATOR
+#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
newbutton &=
~(BUTTON_LEFT | BUTTON_RIGHT
#if defined(BUTTON_UP) && defined(BUTTON_DOWN)