toInt method
Return an integer.
Implementation
int toInt() {
switch (this) {
case GameControllerBindType.none:
return SDL_GameControllerBindType.SDL_CONTROLLER_BINDTYPE_NONE;
case GameControllerBindType.button:
return SDL_GameControllerBindType.SDL_CONTROLLER_BINDTYPE_BUTTON;
case GameControllerBindType.axis:
return SDL_GameControllerBindType.SDL_CONTROLLER_BINDTYPE_AXIS;
case GameControllerBindType.hat:
return SDL_GameControllerBindType.SDL_CONTROLLER_BINDTYPE_HAT;
}
}