From f1ac1ad9f957f8d0cf162ccd4649bc7448669043 Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Wed, 13 Oct 2021 12:53:54 +0100 Subject: [PATCH] (Dingux) Fix HAS_ANALOG/HAS_MENU_TOGGLE defines in sdl_dingux joypad driver --- input/drivers_joypad/sdl_dingux_joypad.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/input/drivers_joypad/sdl_dingux_joypad.c b/input/drivers_joypad/sdl_dingux_joypad.c index ad0a804868..dd664f892f 100644 --- a/input/drivers_joypad/sdl_dingux_joypad.c +++ b/input/drivers_joypad/sdl_dingux_joypad.c @@ -32,12 +32,21 @@ #include "../../config.def.h" #endif -#if defined(RS90) || defined(RETROFW) || defined(MIYOO) -#define SDL_DINGUX_HAS_ANALOG 0 -#define SDL_DINGUX_HAS_MENU_TOGGLE 0 -#else +/* RS-90 and RetroFW devices: + * - Analog input: No + * - Menu button: No + * Miyoo devices: + * - Analog input: No + * - Menu button: Yes + * All other OpenDingux devices: + * - Analog input: Yes + * - Menu button: Yes + */ +#if !(defined(RS90) || defined(RETROFW)) +#if !defined(MIYOO) #define SDL_DINGUX_HAS_ANALOG 1 -#define SDL_DINGUX_HAS_MENU_TOGGLE 1 +#endif +#define SDL_DINGUX_HAS_MENU_TOGGLE 1 #endif /* Simple joypad driver designed to rationalise