Mercurial > sdl-ios-xcode
comparison src/joystick/darwin/SDL_sysjoystick.c @ 1635:92947e3a18db
Make sure code is only compiled if the appropriate subsystem is enabled
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 14 Apr 2006 04:46:47 +0000 |
parents | f12379c41042 |
children | 782fd950bd46 c121d94672cb 7156c3b5536b |
comparison
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 */ |