/* values for the joystick */
#define JOYSTICK_OFF 0
#define JOYSTICK_AVAILABLE 1
+
#ifdef __FreeBSD__
#include <machine/joystick.h>
#define DEV_JOYSTICK_0 "/dev/joy0"
/* 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
#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);
int AnyJoystickButton(void);
#endif
-