X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fjoystick.h;h=d778c88c178cc9abaaa22fbc307e4481735184e0;hb=a8816d6e5319f9ec26a45346b08250f61e95c011;hp=d571a1303fb296aafed0c35ab0eda3e949814cec;hpb=5361c043c5668c9801b4682e0691d34ec428545f;p=rocksndiamonds.git diff --git a/src/libgame/joystick.h b/src/libgame/joystick.h index d571a130..d778c88c 100644 --- a/src/libgame/joystick.h +++ b/src/libgame/joystick.h @@ -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