JoyHatEvent.fromSdlEvent constructor
JoyHatEvent.fromSdlEvent(
- Sdl sdl,
- SDL_JoyHatEvent e
Create an instance from an event.
Implementation
JoyHatEvent.fromSdlEvent(final Sdl sdl, final SDL_JoyHatEvent e)
: value = e.value.toJoyHatValue(),
hat = e.hat,
super(joystickId: e.which, sdl: sdl, timestamp: e.timestamp);