# ifdef HAVE_USB_JS
# if defined(__NetBSD__)
-/* XXX The below hack is done until freeglut's autoconf is updated. */
-# define HAVE_USBHID_H 1
# ifdef HAVE_USBHID_H
# include <usbhid.h>
# else
# include <usb.h>
# endif
+# include <dev/usb/usb.h>
# elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
# ifdef HAVE_USBHID_H
# include <usbhid.h>
# else
# include <libusbhid.h>
# endif
+# include <legacy/dev/usb/usb.h>
# endif
-# include <legacy/dev/usb/usb.h>
# include <dev/usb/usbhid.h>
/* Compatibility with older usb.h revisions */
void fgPlatformJoystickOpen( SFG_Joystick* joy )
{
- int i = 0;
+ int i = 0;
OSStatus err;
/* XXX FIXME: get joystick name in Mac */
joy->num_axes = joy->num_buttons = 0;
joy->name[ 0 ] = '\0';
- fgPlatformJoystickOpen ( joy );
+ fgPlatformJoystickOpen ( joy );
}
fgJoystick[ ident ]->num_axes = fgJoystick[ ident ]->num_buttons = 0;
fgJoystick[ ident ]->error = GL_TRUE;
- fgPlatformJoystickInit( fgJoystick, ident );
+ fgPlatformJoystickInit( fgJoystick, ident );
fghJoystickOpen( fgJoystick[ ident ] );
}
{
if( fgJoystick[ ident ] )
{
- fgPlatformJoystickClose ( ident );
+ fgPlatformJoystickClose ( ident );
free( fgJoystick[ ident ] );
fgJoystick[ ident ] = NULL;