freebsd-ports/games/rocksndiamonds/files/patch-ag
FUJISHIMA Satsuki c7c0d17234 o update to 2.0.0.
o add SDL support.

PR:		24731
Submitted by:	maintainer
2001-02-14 22:22:15 +00:00

32 lines
773 B
Plaintext

--- src/joystick.c.orig Tue Dec 5 02:11:08 2000
+++ src/joystick.c Tue Jan 30 09:52:41 2001
@@ -11,10 +11,6 @@
* joystick.c *
***********************************************************/
-#if defined(PLATFORM_FREEBSD)
-#include <machine/joystick.h>
-#endif
-
#include "libgame/libgame.h"
#include "joystick.h"
@@ -319,7 +315,7 @@
#if defined(PLATFORM_UNIX)
int Joystick(int player_nr)
{
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && !defined(NO_JOYSTICK)
struct joystick joy_ctrl;
#else
struct joystick_control
@@ -355,7 +351,7 @@
js_x = joy_ctrl.x;
js_y = joy_ctrl.y;
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && !defined(NO_JOYSTICK)
js_b1 = joy_ctrl.b1;
js_b2 = joy_ctrl.b2;
#else