MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / ControllerDeviceUpdate

Function ControllerDeviceUpdate

demo/main.cpp:2592–2602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2590}
2591
2592void ControllerDeviceUpdate()
2593{
2594 if (SDL_NumJoysticks() > 0)
2595 {
2596 SDL_JoystickEventState(SDL_ENABLE);
2597 if (SDL_IsGameController(0))
2598 {
2599 g_gamecontroller = SDL_GameControllerOpen(0);
2600 }
2601 }
2602}
2603
2604void SDLInit(const char* title)
2605{

Callers 1

SDLMainLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected