« on: December 30, 2017, 01:28:07 PM »
While looking around the source code noticed that the plugins are not enabled, at first I thought it was due to not having any keymaps. It seems that there are touchscreen keymaps they are just not getting applied by the code:- #define DOOMBUTTON_MAP BUTTON_MENU
#elif CONFIG_KEYPAD == DX50_PAD
#define DOOMBUTTON_ESC BUTTON_POWER
#define DOOMBUTTON_SHOOT BUTTON_VOL_UP
#define DOOMBUTTON_WEAPON BUTTON_VOL_DOWN
#define DOOMBUTTON_MAP BUTTON_PLAY
#else
#error Keymap not defined!
#endif
#ifdef HAVE_TOUCHSCREEN
#ifndef DOOMBUTTON_UP
#define DOOMBUTTON_UP BUTTON_TOPMIDDLE
#endif
#ifndef DOOMBUTTON_DOWN
#define DOOMBUTTON_DOWN BUTTON_BOTTOMMIDDLE
However if I just move the touchscreen keymap up (before the Keymap not defined!) they get compiled and work as intended:-
#define DOOMBUTTON_MAP BUTTON_MENU
#elif CONFIG_KEYPAD == DX50_PAD
#define DOOMBUTTON_ESC BUTTON_POWER
#define DOOMBUTTON_SHOOT BUTTON_VOL_UP
#define DOOMBUTTON_WEAPON BUTTON_VOL_DOWN
#define DOOMBUTTON_MAP BUTTON_PLAY
#elif CONFIG_KEYPAD == CREATIVE_ZENXFI2_PAD
#define DOOMBUTTON_UP BUTTON_TOPMIDDLE
#define DOOMBUTTON_DOWN BUTTON_BOTTOMMIDDLE
#define DOOMBUTTON_LEFT BUTTON_MIDLEFT
#define DOOMBUTTON_RIGHT BUTTON_MIDRIGHT
#define DOOMBUTTON_SHOOT BUTTON_BOTTOMRIGHT
#define DOOMBUTTON_OPEN BUTTON_TOPRIGHT
#define DOOMBUTTON_ESC BUTTON_TOPLEFT
#define DOOMBUTTON_ENTER BUTTON_CENTER
#define DOOMBUTTON_WEAPON BUTTON_BOTTOMLEFT
#else
#error Keymap not defined!
#endif
« Last Edit: December 31, 2017, 04:41:46 AM by Bilgus »
Logged
Rockboxed Daps:-
Pinephone (RaaA), Benjie T6, Sony NWZ-E384 (dead battery), Samsung YP-R0 (the best rockbox player), Creative Zen X -Fi, Sansa clip+, Sansa Fuze+ x2 (good for rockbox games) , Creative Zen X-Fi2 , Unbranded Rk27xx Dap (I need to fix the buttons)