rnd-20140515-2-src
[rocksndiamonds.git] / src / libgame / joystick.h
index efaaf5b8974440571dc1d6cc97e071c3f42158f4..fe4356e8ad548f1ddfd84268fce44f3ae31e4781 100644 (file)
@@ -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
 #define JOY_BUTTON_NEW_PRESSED 2
 #define JOY_BUTTON_NEW_RELEASED        3
 
-#if defined(PLATFORM_UNIX)
-void UnixInitJoysticks(void);
-boolean UnixReadJoystick(int, int *, int *, boolean *, boolean *);
-#endif
-
 char *getJoyNameFromJoySymbol(int);
 int getJoySymbolFromJoyName(char *);
 int getJoystickNrFromDeviceName(char *);