Use KEY_KP* (similar to ABXY) to get them picked up by X and SDL.
.active_low = 1,
.desc = "game 4",
}, {
- .code = BTN_TL,
+ .code = KEY_KP5,
.gpio = 102,
.active_low = 1,
.desc = "shoulder l",
}, {
- .code = BTN_TL2,
+ .code = KEY_KP7,
.gpio = 97,
.active_low = 1,
.desc = "shoulder l2",
}, {
- .code = BTN_TR,
+ .code = KEY_KP6,
.gpio = 105,
.active_low = 1,
.desc = "shoulder r",
}, {
- .code = BTN_TR2,
+ .code = KEY_KP8,
.gpio = 107,
.active_low = 1,
.desc = "shoulder r2",
{ KEY_LEFTCTRL, BTN_SELECT },
{ KEY_LEFTALT, BTN_START },
{ KEY_MENU, BTN_MODE },
+ { KEY_KP5, BTN_TL },
+ { KEY_KP6, BTN_TR },
+ { KEY_KP7, BTN_TL2 },
+ { KEY_KP8, BTN_TR2 },
};
/* pandora hack 2: convert some normal keys to abs events