X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fjoystick.h;h=3632b7a706f6a82a9b79897ddcb78fb0795045d6;hb=a8b2caa1d373c84c1b3fc2f615370c2a319051ca;hp=64fd00690bf2e106baa661f10de0619a67d82fdd;hpb=41cfe645942062496cd063eb46e17d677a76c645;p=rocksndiamonds.git diff --git a/src/joystick.h b/src/joystick.h index 64fd0069..3632b7a7 100644 --- a/src/joystick.h +++ b/src/joystick.h @@ -19,6 +19,7 @@ /* values for the joystick */ #define JOYSTICK_OFF 0 #define JOYSTICK_AVAILABLE 1 + #ifdef __FreeBSD__ #include #define DEV_JOYSTICK_0 "/dev/joy0" @@ -35,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 USE_SDL_LIBRARY +#ifdef TARGET_SDL #define JOYSTICK_XLEFT -32767 #define JOYSTICK_XMIDDLE 0 #define JOYSTICK_XRIGHT 32767 @@ -73,7 +74,7 @@ #endif -#ifdef USE_SDL_LIBRARY +#ifdef USE_SDL_JOYSTICK SDL_Joystick *Get_SDL_Joystick(int); boolean Open_SDL_Joystick(int); void Close_SDL_Joystick(int); @@ -89,4 +90,3 @@ int AnyJoystick(void); int AnyJoystickButton(void); #endif -