Searched defs:joystick (Results 1 - 3 of 3) sorted by relevance
/prebuilts/misc/windows/sdl2/test/ |
H A D | testhotplug.c | 13 /* Simple program to test the SDL joystick hotplugging */ 27 SDL_Joystick *joystick = NULL; local 73 if (joystick != NULL) 75 SDL_Log("Only one joystick supported by this test\n"); 79 joystick = SDL_JoystickOpen(event.jdevice.which); 80 instance = SDL_JoystickInstanceID(joystick); 81 SDL_Log("Joy Added : %d : %s\n", event.jdevice.which, SDL_JoystickName(joystick)); 84 if (SDL_JoystickIsHaptic(joystick)) 86 haptic = SDL_HapticOpenFromJoystick(joystick); 117 SDL_JoystickClose(joystick); [all...] |
H A D | testjoystick.c | 13 /* Simple program to test the SDL joystick routines */ 40 WatchJoystick(SDL_Joystick * joystick) argument 50 /* Create a window to display joystick axis position */ 71 /* Print info about the joystick we are watching */ 72 name = SDL_JoystickName(joystick); 73 SDL_Log("Watching joystick %d: (%s)\n", SDL_JoystickInstanceID(joystick), 76 SDL_JoystickNumAxes(joystick), SDL_JoystickNumHats(joystick), 77 SDL_JoystickNumBalls(joystick), SDL_JoystickNumButton 212 SDL_Joystick *joystick; local [all...] |
H A D | controllermap.c | 100 WatchJoystick(SDL_Joystick * joystick) argument 139 /* Create a window to display joystick axis position */ 163 /* Print info about the joystick we are watching */ 164 name = SDL_JoystickName(joystick); 165 SDL_Log("Watching joystick %d: (%s)\n", SDL_JoystickInstanceID(joystick), 168 SDL_JoystickNumAxes(joystick), SDL_JoystickNumHats(joystick), 169 SDL_JoystickNumBalls(joystick), SDL_JoystickNumButtons(joystick)); 342 SDL_Joystick *joystick; local [all...] |
Completed in 2686 milliseconds