flaw-input/Flaw/Input/Sdl.hs
Parse error Open
Open
, SDL.controllerButtonEventButton = gamepadButtonFromSdlButton . fromIntegral -> button
- Read upRead up
- Exclude checks
Found
{ SDL.eventType = eventType
, SDL.controllerButtonEventWhich = joystickId
> , SDL.controllerButtonEventButton = gamepadButtonFromSdlButton . fromIntegral -> button
} -> when (button /= GamepadButtonUnknown) $ case eventType of
SDL.SDL_CONTROLLERBUTTONDOWN -> addGamepadEvent joystickId $ GamepadButtonDownEvent button
remove it.