comparison src/joystick/SDL_sysjoystick.h @ 1668:4da1ee79c9af SDL-1.3

more tweaking indent options
author Sam Lantinga <slouken@libsdl.org>
date Mon, 29 May 2006 04:04:35 +0000
parents 782fd950bd46
children
comparison
equal deleted inserted replaced
1667:1fddae038bc8 1668:4da1ee79c9af
55 /* Function to scan the system for joysticks. 55 /* Function to scan the system for joysticks.
56 * Joystick 0 should be the system default joystick. 56 * Joystick 0 should be the system default joystick.
57 * This function should return the number of available joysticks, or -1 57 * This function should return the number of available joysticks, or -1
58 * on an unrecoverable fatal error. 58 * on an unrecoverable fatal error.
59 */ 59 */
60 extern int SDL_SYS_JoystickInit (void); 60 extern int SDL_SYS_JoystickInit(void);
61 61
62 /* Function to get the device-dependent name of a joystick */ 62 /* Function to get the device-dependent name of a joystick */
63 extern const char *SDL_SYS_JoystickName (int index); 63 extern const char *SDL_SYS_JoystickName(int index);
64 64
65 /* Function to open a joystick for use. 65 /* Function to open a joystick for use.
66 The joystick to open is specified by the index field of the joystick. 66 The joystick to open is specified by the index field of the joystick.
67 This should fill the nbuttons and naxes fields of the joystick structure. 67 This should fill the nbuttons and naxes fields of the joystick structure.
68 It returns 0, or -1 if there is an error. 68 It returns 0, or -1 if there is an error.
69 */ 69 */
70 extern int SDL_SYS_JoystickOpen (SDL_Joystick * joystick); 70 extern int SDL_SYS_JoystickOpen(SDL_Joystick * joystick);
71 71
72 /* Function to update the state of a joystick - called as a device poll. 72 /* Function to update the state of a joystick - called as a device poll.
73 * This function shouldn't update the joystick structure directly, 73 * This function shouldn't update the joystick structure directly,
74 * but instead should call SDL_PrivateJoystick*() to deliver events 74 * but instead should call SDL_PrivateJoystick*() to deliver events
75 * and update joystick device state. 75 * and update joystick device state.
76 */ 76 */
77 extern void SDL_SYS_JoystickUpdate (SDL_Joystick * joystick); 77 extern void SDL_SYS_JoystickUpdate(SDL_Joystick * joystick);
78 78
79 /* Function to close a joystick after use */ 79 /* Function to close a joystick after use */
80 extern void SDL_SYS_JoystickClose (SDL_Joystick * joystick); 80 extern void SDL_SYS_JoystickClose(SDL_Joystick * joystick);
81 81
82 /* Function to perform any system-specific joystick related cleanup */ 82 /* Function to perform any system-specific joystick related cleanup */
83 extern void SDL_SYS_JoystickQuit (void); 83 extern void SDL_SYS_JoystickQuit(void);
84 /* vi: set ts=4 sw=4 expandtab: */ 84 /* vi: set ts=4 sw=4 expandtab: */