Skip to content

Commit

Permalink
Mac: patched to compile with haptic subsystem disabled (thanks, Rodri…
Browse files Browse the repository at this point in the history
…go!).

Fixes Bugzilla #2717.
  • Loading branch information
icculus committed Mar 24, 2015
1 parent 9470f4a commit 4a071b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/joystick/darwin/SDL_sysjoystick.c
Expand Up @@ -412,12 +412,12 @@ JoystickDeviceWasAddedCallback(void *ctx, IOReturn res, void *sender, IOHIDDevic
/* We have to do some storage of the io_service_t for SDL_HapticOpenFromJoystick */
if (IOHIDDeviceGetService != NULL) { /* weak reference: available in 10.6 and later. */
const io_service_t ioservice = IOHIDDeviceGetService(ioHIDDeviceObject);
#if SDL_HAPTIC_IOKIT
if ((ioservice) && (FFIsForceFeedback(ioservice) == FF_OK)) {
device->ffservice = ioservice;
#if SDL_HAPTIC_IOKIT
MacHaptic_MaybeAddDevice(ioservice);
#endif
}
#endif
}

device->send_open_event = 1;
Expand Down

0 comments on commit 4a071b3

Please sign in to comment.