gameControllerEventsEnabled property

bool gameControllerEventsEnabled

Get the state of game controller events.

Implementation

bool get gameControllerEventsEnabled {
  final value = sdl.SDL_GameControllerEventState(SDL_QUERY);
  switch (value) {
    case SDL_IGNORE:
      return false;
    case SDL_ENABLE:
      return true;
    default:
      throw SdlError(value, 'Unknown result.');
  }
}
void gameControllerEventsEnabled=(bool value)

Set whether or not game controller events are enabled.

Implementation

set gameControllerEventsEnabled(final bool value) =>
    sdl.SDL_GameControllerEventState(value ? SDL_ENABLE : SDL_IGNORE);