/external/qemu/distrib/sdl-1.2.15/src/joystick/dummy/ |
H A D | SDL_sysjoystick.c | 26 /* This is the system specific header for the SDL joystick API */ 34 * joysticks. Joystick 0 should be the system default joystick. 43 /* Function to get the device-dependent name of a joystick */ 50 /* Function to open a joystick for use. 51 The joystick to open is specified by the index field of the joystick. 52 This should fill the nbuttons and naxes fields of the joystick structure. 55 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) argument 61 /* Function to update the state of a joystick - called as a device poll. 62 * This function shouldn't update the joystick structur 66 SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) argument 72 SDL_SYS_JoystickClose(SDL_Joystick *joystick) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/joystick/nds/ |
H A D | SDL_sysjoystick.c | 24 /* This is the system specific header for the SDL joystick API */ 38 * joysticks. Joystick 0 should be the system default joystick. 49 /* Function to get the device-dependent name of a joystick */ 54 SDL_SetError("No joystick available with that index"); 58 /* Function to open a joystick for use. 59 The joystick to open is specified by the index field of the joystick. 60 This should fill the nbuttons and naxes fields of the joystick structure. 63 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) argument 65 joystick 84 SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) argument 142 SDL_SYS_JoystickClose(SDL_Joystick *joystick) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/joystick/riscos/ |
H A D | SDL_sysjoystick.c | 29 Note: Currently assumes joystick is present if joystick module is loaded 30 and that there is one joystick with four buttons. 33 /* This is the system specific header for the SDL joystick API */ 52 * joysticks. Joystick 0 should be the system default joystick. 59 /* Try to read joystick 0 */ 63 /* Switch works so assume we've got a joystick */ 66 /* Switch fails so it looks like there's no joystick here */ 71 /* Function to get the device-dependent name of a joystick */ 79 SDL_SetError("No joystick availabl 88 SDL_SYS_JoystickOpen(SDL_Joystick *joystick) argument 114 SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) argument 161 SDL_SYS_JoystickClose(SDL_Joystick *joystick) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/test/ |
H A D | testjoystick.c | 2 /* Simple program to test the SDL joystick routines */ 13 void WatchJoystick(SDL_Joystick *joystick) argument 22 /* Set a video mode to display joystick axis position */ 29 /* Print info about the joystick we are watching */ 30 name = SDL_JoystickName(SDL_JoystickIndex(joystick)); 31 printf("Watching joystick %d: (%s)\n", SDL_JoystickIndex(joystick), 34 SDL_JoystickNumAxes(joystick), SDL_JoystickNumHats(joystick), 35 SDL_JoystickNumBalls(joystick),SDL_JoystickNumButton 150 SDL_Joystick *joystick; local [all...] |
/external/qemu/distrib/sdl-1.2.15/src/joystick/beos/ |
H A D | SDL_bejoystick.cc | 26 /* This is the system specific header for the SDL joystick API */ 45 /* The private structure used to keep track of a joystick */ 54 * joysticks. Joystick 0 should be the system default joystick. 59 BJoystick joystick; local 66 nports = joystick.CountDevices(); 71 if ( joystick.GetDeviceName(i, name) == B_OK ) { 72 if ( joystick.Open(name) != B_ERROR ) { 74 joystick.GetControllerName(&stick_name); 79 joystick.Close(); 86 /* Function to get the device-dependent name of a joystick */ 97 SDL_SYS_JoystickOpen(SDL_Joystick *joystick) argument 146 SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) argument 203 SDL_SYS_JoystickClose(SDL_Joystick *joystick) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/joystick/dc/ |
H A D | SDL_sysjoystick.c | 35 #define MAX_AXES 6 /* each joystick can have up to 6 axes */ 41 /* array to hold joystick ID values */ 44 /* The private structure used to keep track of a joystick */ 53 * joysticks. Joystick 0 should be the system default joystick. 75 /* Function to get the device-dependent name of a joystick */ 83 /* Function to open a joystick for use. 84 The joystick to open is specified by the index field of the joystick. 85 This should fill the nbuttons and naxes fields of the joystick structure. 88 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) argument 113 SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) argument 179 SDL_SYS_JoystickClose(SDL_Joystick *joystick) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/joystick/macos/ |
H A D | SDL_sysjoystick.c | 27 MacOS joystick functions by Frederick Reitberger 62 * Joystick 0 should be the system default joystick. 129 /* Function to get the device-dependent name of a joystick */ 146 /* Function to open a joystick for use. 147 The joystick to open is specified by the index field of the joystick. 148 This should fill the nbuttons and naxes fields of the joystick structure. 151 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) argument 161 index = joystick->index; 164 joystick 224 SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) argument 303 SDL_SYS_JoystickClose(SDL_Joystick *joystick) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/joystick/ |
H A D | SDL_joystick.c | 24 /* This is the joystick API for Simple DirectMedia Layer */ 75 * Get the implementation dependent name of a joystick 88 * Open a joystick for use - the index passed as an argument refers to 89 * the N'th joystick on the system. This index is the value which will 90 * identify this joystick in future joystick events. 92 * This function returns a joystick identifier, or NULL if an error occurred. 97 SDL_Joystick *joystick; local 105 /* If the joystick is already open, return it */ 108 joystick 198 ValidJoystick(SDL_Joystick **joystick) argument 214 SDL_JoystickIndex(SDL_Joystick *joystick) argument 225 SDL_JoystickNumAxes(SDL_Joystick *joystick) argument 236 SDL_JoystickNumHats(SDL_Joystick *joystick) argument 247 SDL_JoystickNumBalls(SDL_Joystick *joystick) argument 258 SDL_JoystickNumButtons(SDL_Joystick *joystick) argument 269 SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis) argument 288 SDL_JoystickGetHat(SDL_Joystick *joystick, int hat) argument 307 SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy) argument 335 SDL_JoystickGetButton(SDL_Joystick *joystick, int button) argument 354 SDL_JoystickClose(SDL_Joystick *joystick) argument 432 SDL_PrivateJoystickAxis(SDL_Joystick *joystick, Uint8 axis, Sint16 value) argument 462 SDL_PrivateJoystickHat(SDL_Joystick *joystick, Uint8 hat, Uint8 value) argument 492 SDL_PrivateJoystickBall(SDL_Joystick *joystick, Uint8 ball, Sint16 xrel, Sint16 yrel) argument 525 SDL_PrivateJoystickButton(SDL_Joystick *joystick, Uint8 button, Uint8 state) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/joystick/win32/ |
H A D | SDL_mmjoystick.c | 39 #define MAX_AXES 6 /* each joystick can have up to 6 axes */ 48 /* array to hold joystick ID values */ 53 /* The private structure used to keep track of a joystick */ 56 /* joystick ID */ 75 see if there is a joystick for the current 99 /* find the registry key name for the joystick's properties */ 136 * joysticks. Joystick 0 should be the system default joystick. 148 /* Reset the joystick ID & name mapping tables */ 154 /* Loop over all potential joystick devices */ 175 /* Function to get the device-dependent name of a joystick */ 190 SDL_SYS_JoystickOpen(SDL_Joystick *joystick) argument 274 SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) argument 342 SDL_SYS_JoystickClose(SDL_Joystick *joystick) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/joystick/darwin/ |
H A D | SDL_sysjoystick.c | 26 /* SDL joystick driver for Darwin / Mac OS X, based on the IOKit HID API */ 566 * Joystick 0 should be the system default joystick. 598 /* Add key for device type (joystick, in this case) to refine the matching dictionary. */ 682 /* Function to get the device-dependent name of a joystick */ 693 /* Function to open a joystick for use. 694 * The joystick to open is specified by the index field of the joystick. 695 * This should fill the nbuttons and naxes fields of the joystick structure. 698 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) argument 703 for (index = joystick 722 SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) argument 829 SDL_SYS_JoystickClose(SDL_Joystick *joystick) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/joystick/mint/ |
H A D | SDL_sysjoystick.c | 46 1 joystick on IKBD port 1, read via hardware I/O 47 or same joystick on IKBD port 1, read via xbios 216 {SDL_FALSE,"IKBD joystick port 1",0}, 217 {SDL_FALSE,"Xbios joystick port 1",0}, 379 /* Return the nth'index' enabled atari joystick */ 409 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) argument 413 numjoystick=GetEnabledAtariJoystick(joystick->index); 417 joystick->naxes=0; 418 joystick->nhats=0; 419 joystick 484 SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) argument 733 SDL_SYS_JoystickClose(SDL_Joystick *joystick) argument [all...] |
/external/qemu/distrib/sdl-1.2.15/src/joystick/linux/ |
H A D | SDL_sysjoystick.c | 26 /* This is the system specific header for the SDL joystick API */ 33 #include <linux/joystick.h> 42 /* Special joystick configurations */ 68 Some USB HIDs show up as a single joystick even though they actually 157 This array sets up a means of mapping a single physical joystick to 164 an array of layout structures, one to describe each logical joystick 274 /* The private structure used to keep track of a joystick */ 277 /* The current linux joystick driver maps hats to two axes */ 281 /* The current linux joystick driver maps balls to two axes */ 402 /* The base path of the joystick device 548 allocate_hatdata(SDL_Joystick *joystick) argument 564 allocate_balldata(SDL_Joystick *joystick) argument 580 JS_ConfigJoystick(SDL_Joystick *joystick, int fd) argument 671 EV_ConfigJoystick(SDL_Joystick *joystick, int fd) argument 771 ConfigLogicalJoystick(SDL_Joystick *joystick) argument 791 SDL_SYS_JoystickOpen(SDL_Joystick *joystick) argument 850 FindLogicalJoystick( SDL_Joystick *joystick, struct joystick_logical_mapping* v) argument 878 LogicalJoystickButton( SDL_Joystick *joystick, Uint8 button, Uint8 state) argument 901 LogicalJoystickAxis( SDL_Joystick *joystick, Uint8 axis, Sint16 value) argument 991 JS_HandleEvents(SDL_Joystick *joystick) argument 1052 EV_AxisCorrect(SDL_Joystick *joystick, int which, int value) argument 1077 EV_HandleEvents(SDL_Joystick *joystick) argument 1155 SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) argument 1181 SDL_SYS_JoystickClose(SDL_Joystick *joystick) argument [all...] |