comparison src/joystick/bsd/SDL_sysjoystick.c @ 1185:58538e140e2d

Apparently some bits of the BSD joystick code are x86 only...joystick.h only exists at /usr/sys/arch/i386/include/joystick.h, for example.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 22 Nov 2005 15:10:41 +0000
parents b68e551205e9
children c9b51268668f
comparison
equal deleted inserted replaced
1184:a9542c38dcdb 1185:58538e140e2d
58 #ifdef __FreeBSD__ 58 #ifdef __FreeBSD__
59 #include <osreldate.h> 59 #include <osreldate.h>
60 #include <sys/joystick.h> 60 #include <sys/joystick.h>
61 #endif 61 #endif
62 62
63 #if defined(__NetBSD__) || defined(__OpenBSD__) 63 #if defined(__NetBSD__) || (defined(__OpenBSD__) && defined(__i386__))
64 #include <machine/joystick.h> 64 #include <machine/joystick.h>
65 #endif 65 #endif
66 66
67 #include "SDL_error.h" 67 #include "SDL_error.h"
68 #include "SDL_joystick.h" 68 #include "SDL_joystick.h"
368 struct hid_data *hdata; 368 struct hid_data *hdata;
369 struct report *rep; 369 struct report *rep;
370 int nbutton, naxe = -1; 370 int nbutton, naxe = -1;
371 Sint32 v; 371 Sint32 v;
372 372
373 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) 373 #if defined(__FreeBSD__) || defined(__NetBSD__) || (defined(__OpenBSD__) && defined(__i386__))
374 struct joystick gameport; 374 struct joystick gameport;
375 static int x, y, xmin = 0xffff, ymin = 0xffff, xmax = 0, ymax = 0; 375 static int x, y, xmin = 0xffff, ymin = 0xffff, xmax = 0, ymax = 0;
376 376
377 if (joy->hwdata->type == BSDJOY_JOY) { 377 if (joy->hwdata->type == BSDJOY_JOY) {
378 if (read(joy->hwdata->fd, &gameport, sizeof gameport) != sizeof gameport) 378 if (read(joy->hwdata->fd, &gameport, sizeof gameport) != sizeof gameport)