Mercurial > sdl-ios-xcode
comparison src/joystick/darwin/SDL_sysjoystick.c @ 2639:668fee3b268a gsoc2008_force_feedback
Casting for warnings.
Fixed possible segfault.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Sun, 10 Aug 2008 19:53:58 +0000 |
parents | db93456d4b26 |
children | e8a54b6fd512 |
comparison
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 */ |