rnd-20140114-1-src
[rocksndiamonds.git] / src / libgame / joystick.h
index d571a1303fb296aafed0c35ab0eda3e949814cec..d778c88c178cc9abaaa22fbc307e4481735184e0 100644 (file)
@@ -1,7 +1,7 @@
 /***********************************************************
 * Artsoft Retro-Game Library                               *
 *----------------------------------------------------------*
-* (c) 1995-2002 Artsoft Entertainment                      *
+* (c) 1995-2006 Artsoft Entertainment                      *
 *               Holger Schemel                             *
 *               Detmolder Strasse 189                      *
 *               33604 Bielefeld                            *
@@ -36,7 +36,7 @@
 /* get these values from the program 'js' from the joystick package, */
 /* set JOYSTICK_PERCENT to a threshold appropriate for your joystick */
 
-#ifdef TARGET_SDL
+#if defined(TARGET_SDL)
 #define JOYSTICK_XLEFT         -32767
 #define JOYSTICK_XMIDDLE       0
 #define JOYSTICK_XRIGHT                32767
@@ -61,6 +61,8 @@
 #define JOY_DOWN               MV_DOWN
 #define JOY_BUTTON_1           KEY_BUTTON_1
 #define JOY_BUTTON_2           KEY_BUTTON_2
+#define JOY_BUTTON_SNAP                KEY_BUTTON_SNAP
+#define JOY_BUTTON_DROP                KEY_BUTTON_DROP
 #define JOY_MOTION             KEY_MOTION
 #define JOY_BUTTON             KEY_BUTTON
 #define JOY_ACTION             KEY_ACTION