Mercurial > sdl-ios-xcode
diff src/joystick/dummy/SDL_sysjoystick.c @ 1662:782fd950bd46 SDL-1.3
Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API.
WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid.
The code is now run through a consistent indent format:
indent -i4 -nut -nsc -br -ce
The headers are being converted to automatically generate doxygen documentation.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 28 May 2006 13:04:16 +0000 |
parents | 92947e3a18db |
children | 4da1ee79c9af |
line wrap: on
line diff
--- a/src/joystick/dummy/SDL_sysjoystick.c Sun May 21 17:27:13 2006 +0000 +++ b/src/joystick/dummy/SDL_sysjoystick.c Sun May 28 13:04:16 2006 +0000 @@ -34,17 +34,19 @@ * joysticks. Joystick 0 should be the system default joystick. * It should return 0, or -1 on an unrecoverable fatal error. */ -int SDL_SYS_JoystickInit(void) +int +SDL_SYS_JoystickInit (void) { - SDL_numjoysticks = 0; - return(0); + SDL_numjoysticks = 0; + return (0); } /* Function to get the device-dependent name of a joystick */ -const char *SDL_SYS_JoystickName(int index) +const char * +SDL_SYS_JoystickName (int index) { - SDL_SetError("Logic error: No joysticks available"); - return(NULL); + SDL_SetError ("Logic error: No joysticks available"); + return (NULL); } /* Function to open a joystick for use. @@ -52,10 +54,11 @@ This should fill the nbuttons and naxes fields of the joystick structure. It returns 0, or -1 if there is an error. */ -int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) +int +SDL_SYS_JoystickOpen (SDL_Joystick * joystick) { - SDL_SetError("Logic error: No joysticks available"); - return(-1); + SDL_SetError ("Logic error: No joysticks available"); + return (-1); } /* Function to update the state of a joystick - called as a device poll. @@ -63,21 +66,25 @@ * but instead should call SDL_PrivateJoystick*() to deliver events * and update joystick device state. */ -void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) +void +SDL_SYS_JoystickUpdate (SDL_Joystick * joystick) { - return; + return; } /* Function to close a joystick after use */ -void SDL_SYS_JoystickClose(SDL_Joystick *joystick) +void +SDL_SYS_JoystickClose (SDL_Joystick * joystick) { - return; + return; } /* Function to perform any system-specific joystick related cleanup */ -void SDL_SYS_JoystickQuit(void) +void +SDL_SYS_JoystickQuit (void) { - return; + return; } #endif /* SDL_JOYSTICK_DUMMY || SDL_JOYSTICK_DISABLED */ +/* vi: set ts=4 sw=4 expandtab: */