src/joystick/darwin/SDL_sysjoystick.c
changeset 1635 92947e3a18db
parent 1621 f12379c41042
child 1662 782fd950bd46
child 1895 c121d94672cb
child 3924 7156c3b5536b
equal deleted inserted replaced
1634:14f302c5b32c 1635:92947e3a18db
    18 
    18 
    19 	Sam Lantinga
    19 	Sam Lantinga
    20 	slouken@libsdl.org
    20 	slouken@libsdl.org
    21 */
    21 */
    22 #include "SDL_config.h"
    22 #include "SDL_config.h"
       
    23 
       
    24 #ifdef SDL_JOYSTICK_IOKIT
    23 
    25 
    24 /* SDL joystick driver for Darwin / Mac OS X, based on the IOKit HID API */
    26 /* SDL joystick driver for Darwin / Mac OS X, based on the IOKit HID API */
    25 /* Written 2001 by Max Horn */
    27 /* Written 2001 by Max Horn */
    26 
    28 
    27 #include <unistd.h>
    29 #include <unistd.h>
   834 void SDL_SYS_JoystickQuit(void)
   836 void SDL_SYS_JoystickQuit(void)
   835 {
   837 {
   836 	while (NULL != gpDeviceList)
   838 	while (NULL != gpDeviceList)
   837 		gpDeviceList = HIDDisposeDevice (&gpDeviceList);
   839 		gpDeviceList = HIDDisposeDevice (&gpDeviceList);
   838 }
   840 }
       
   841 
       
   842 #endif /* SDL_JOYSTICK_IOKIT */