Home | History | Annotate | Download | only in test

Lines Matching full:gamecontroller

105 WatchGameController(SDL_GameController * gamecontroller)
136 const char *name = SDL_GameControllerName(gamecontroller);
218 if (SDL_GameControllerGetButton(gamecontroller, (SDL_GameControllerButton)i) == SDL_PRESSED) {
226 const Sint16 value = SDL_GameControllerGetAxis(gamecontroller, (SDL_GameControllerAxis)(i));
240 if (!SDL_GameControllerGetAttached(gamecontroller)) {
258 SDL_GameController *gamecontroller;
304 gamecontroller = SDL_GameControllerOpen(device);
306 if (gamecontroller == NULL) {
308 if (gamecontroller == NULL) {
309 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open gamecontroller %d: %s\n", device, SDL_GetError());
317 keepGoing = WatchGameController(gamecontroller);
318 SDL_GameControllerClose(gamecontroller);
321 gamecontroller = NULL;
331 gamecontroller = SDL_GameControllerOpen(event.cdevice.which);