From f5c5034845294382b831b096670efe64fa26e18c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 14 Dec 2014 14:20:47 -0600 Subject: Fix door open detection --- apps/graphics/traveler/src/trv_input.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apps/graphics') diff --git a/apps/graphics/traveler/src/trv_input.c b/apps/graphics/traveler/src/trv_input.c index 9d9d5435b..15b41ad4f 100644 --- a/apps/graphics/traveler/src/trv_input.c +++ b/apps/graphics/traveler/src/trv_input.c @@ -599,8 +599,7 @@ void trv_input_read(void) } } - g_trv_input.dooropen = ((sample.as_buttons & AJOY_BUTTON_SELECT) != 0); - + g_trv_input.dooropen = ((sample.as_buttons & AJOY_BUTTON_SELECT_BIT) != 0); #elif defined(CONFIG_GRAPHICS_TRAVELER_DJOYSTICK) struct djoy_buttonset_t buttonset; @@ -727,7 +726,7 @@ void trv_input_read(void) break; } - g_trv_input.dooropen = ((buttonset & DJOY_BUTTON_SELECT) != 0); + g_trv_input.dooropen = ((buttonset & DJOY_BUTTON_SELECT_BIT) != 0); #endif /* CONFIG_GRAPHICS_TRAVELER_DJOYSTICK */ #elif defined(CONFIG_GRAPHICS_TRAVELER_NX_XYINPUT) -- cgit v1.2.3