sdlGameControllerEventState function
Query or change current state of Game Controller events.
If controller events are disabled, you must call SDL_GameControllerUpdate() yourself and check the state of the controller when you want controller information.
Any number can be passed to SDL_GameControllerEventState(), but only -1, 0, and 1 will have any effect. Other numbers will just be returned.
\param state can be one of SDL_QUERY
, SDL_IGNORE
, or SDL_ENABLE
\returns the same value passed to the function, with exception to -1
(SDL_QUERY), which will return the current state.
\since This function is available since SDL 2.0.0.
\sa SDL_JoystickEventState
extern DECLSPEC int SDLCALL SDL_GameControllerEventState(int state)
Implementation
int sdlGameControllerEventState(int state) {
final sdlGameControllerEventStateLookupFunction = libSdl2.lookupFunction<
Int32 Function(Int32 state),
int Function(int state)>('SDL_GameControllerEventState');
return sdlGameControllerEventStateLookupFunction(state);
}