src/joystick/darwin/SDL_sysjoystick.c
branchgsoc2008_force_feedback
changeset 2639 668fee3b268a
parent 2638 db93456d4b26
child 2640 e8a54b6fd512
equal deleted inserted replaced
2638:db93456d4b26 2639:668fee3b268a
   647         if (!device)
   647         if (!device)
   648             continue;
   648             continue;
   649 
   649 
   650         /* We have to do some storage of the io_service_t for
   650         /* We have to do some storage of the io_service_t for
   651          * SDL_HapticOpenFromJoystick */
   651          * SDL_HapticOpenFromJoystick */
   652         if (FFIsForceFeedback(device) == FF_OK) {
   652         if (FFIsForceFeedback((io_service_t)device) == FF_OK) {
   653            device->ffservice = ioHIDDeviceObject;
   653            device->ffservice = ioHIDDeviceObject;
   654         }
   654         }
   655         else {
   655         else {
   656            device->ffservice = 0;
   656            device->ffservice = 0;
   657            /* dump device object, it is no longer needed */
   657            /* dump device object, it is no longer needed */