handleSdlEvent method
Handle an SDL event.
This method will be called only if the event in question is not consumed by game.
Implementation
@override
void handleSdlEvent(final Event event) {
final button = progressControllerButton;
final scanCode = progressScanCode;
if (button != null &&
event is ControllerButtonEvent &&
event.state == PressedState.pressed &&
event.button == button) {
progress();
} else if (scanCode != null &&
event is KeyboardEvent &&
event.state == PressedState.pressed &&
event.repeat == false &&
event.key.modifiers.isEmpty &&
event.key.scancode == scanCode) {
progress();
} else {
super.handleSdlEvent(event);
}
}