JoyHatEvent.fromSdlEvent constructor

JoyHatEvent.fromSdlEvent(
  1. Sdl sdl,
  2. 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);