ControllerDeviceEvent.fromSdlEvent constructor
ControllerDeviceEvent.fromSdlEvent(
- Sdl sdl,
- SDL_ControllerDeviceEvent event
Create an instance from an SDL event.
Implementation
ControllerDeviceEvent.fromSdlEvent(
final Sdl sdl,
final SDL_ControllerDeviceEvent event,
) : state = event.type.toGameControllerDeviceState(),
super(controllerId: event.which, sdl: sdl, timestamp: event.timestamp);