aboutsummaryrefslogtreecommitdiff
path: root/backends/events/gph
diff options
context:
space:
mode:
authorDavid-John Willis2011-04-12 10:39:38 +0100
committerDavid-John Willis2011-04-12 10:44:04 +0100
commit15bdb29248db3acc5408dacc2bc696e0904d6869 (patch)
treebc0bb2b87366f3c5500fa0d9aabcd47baed82d73 /backends/events/gph
parentfbc58d21ffe7e869b6d6387c72c02fdba32431d8 (diff)
downloadscummvm-rg350-15bdb29248db3acc5408dacc2bc696e0904d6869.tar.gz
scummvm-rg350-15bdb29248db3acc5408dacc2bc696e0904d6869.tar.bz2
scummvm-rg350-15bdb29248db3acc5408dacc2bc696e0904d6869.zip
GPH: Add separate button defined buttons for each supported device.
* No default buttons set any more as I would want the build to fails if you don't provide the backend with a device. * Also commit some small cleanup to the bundle files.
Diffstat (limited to 'backends/events/gph')
-rw-r--r--backends/events/gph/gph-events.cpp40
1 files changed, 39 insertions, 1 deletions
diff --git a/backends/events/gph/gph-events.cpp b/backends/events/gph/gph-events.cpp
index 46ab94609c..d2b3483f84 100644
--- a/backends/events/gph/gph-events.cpp
+++ b/backends/events/gph/gph-events.cpp
@@ -78,7 +78,9 @@ int BUTTON_STATE_L = false;
BUTTON_SELECT = 62
};
-#else
+#endif
+
+#if defined(GP2XWIZ)
/* Wiz: Main Joystick Mappings */
enum {
@@ -115,6 +117,42 @@ int BUTTON_STATE_L = false;
#endif
+#if defined(GP2X)
+
+enum {
+ /* DPAD/Stick */
+ BUTTON_UP = 0,
+ BUTTON_UPLEFT = 1,
+ BUTTON_LEFT = 2,
+ BUTTON_DOWNLEFT = 3,
+ BUTTON_DOWN = 4,
+ BUTTON_DOWNRIGHT = 5,
+ BUTTON_RIGHT = 6,
+ BUTTON_UPRIGHT = 7,
+ /* Joystick Buttons */
+ BUTTON_MENU = 8, // Start on F100 GP2X
+ BUTTON_SELECT = 9,
+ BUTTON_L = 10,
+ BUTTON_R = 11,
+ BUTTON_A = 12,
+ BUTTON_B = 13,
+ BUTTON_X = 14,
+ BUTTON_Y = 15,
+ BUTTON_VOLUP = 16,
+ BUTTON_VOLDOWN = 17,
+ BUTTON_CLICK = 18
+};
+
+enum {
+ /* Unused Joystick Buttons on the GP2X */
+ BUTTON_HOME = 51,
+ BUTTON_HOLD = 52,
+ BUTTON_HELP = 53,
+ BUTTON_HELP2 = 54
+};
+
+#endif
+
enum {
/* Touchscreen TapMode */
TAPMODE_LEFT = 0,