aboutsummaryrefslogtreecommitdiff
path: root/shell/menu/buttons_trimui.h
diff options
context:
space:
mode:
authorneonloop2021-03-11 23:51:42 +0000
committerneonloop2021-03-11 23:51:42 +0000
commitd9c7509a8ed5f190743abeb4ce6702f0549abde3 (patch)
tree9a99ba093da651852a203472629d98a47ca49c69 /shell/menu/buttons_trimui.h
parentc057cb5ed6ffed8a9b88158a9e0e77608b46813f (diff)
downloadsnesemu-d9c7509a8ed5f190743abeb4ce6702f0549abde3.tar.gz
snesemu-d9c7509a8ed5f190743abeb4ce6702f0549abde3.tar.bz2
snesemu-d9c7509a8ed5f190743abeb4ce6702f0549abde3.zip
Makes button names symbolic for easier overriding
This puts platform-specific overrides in a central location and makes button references easier to understand.
Diffstat (limited to 'shell/menu/buttons_trimui.h')
-rw-r--r--shell/menu/buttons_trimui.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/shell/menu/buttons_trimui.h b/shell/menu/buttons_trimui.h
new file mode 100644
index 0000000..36b548d
--- /dev/null
+++ b/shell/menu/buttons_trimui.h
@@ -0,0 +1,25 @@
+#ifndef BUTTONS_TRIMUI_H
+#define BUTTONS_TRIMUI_H
+#include <SDL/SDL.h>
+
+#define BTN_UP SDLK_UP
+#define BTN_RIGHT SDLK_RIGHT
+#define BTN_DOWN SDLK_DOWN
+#define BTN_LEFT SDLK_LEFT
+#define BTN_A SDLK_SPACE
+#define BTN_B SDLK_LCTRL
+#define BTN_X SDLK_LSHIFT
+#define BTN_Y SDLK_LALT
+#define BTN_L SDLK_TAB
+#define BTN_R SDLK_BACKSPACE
+#define BTN_START SDLK_RETURN
+#define BTN_SELECT SDLK_RCTRL
+#define BTN_MENU SDLK_ESCAPE
+
+#define BTN_L2 SDLK_END
+#define BTN_R2 SDLK_3
+#define BTN_VOLUMEUP SDLK_AMPERSAND
+#define BTN_VOLUMEDOWN SDLK_WORLD_73
+#define BTN_HOME SDLK_HOME
+
+#endif // BUTTONS_TRIMUI_H