Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
type Callback st = (ModifierKeys, MouseButtonState, MouseButton) -> StageRIO st () Source #
data MouseButton #
MouseButton'1 | |
MouseButton'2 | |
MouseButton'3 | |
MouseButton'4 | |
MouseButton'5 | |
MouseButton'6 | |
MouseButton'7 | |
MouseButton'8 |
Instances
data MouseButtonState #
Instances
data ModifierKeys #
ModifierKeys | |
|
Instances
mkCallback :: UnliftIO (StageRIO st) -> Callback st -> MouseButtonCallback Source #
mouseButtonState :: a -> a -> MouseButtonState -> a Source #
whenPressed :: Applicative f => MouseButtonState -> f () -> f () Source #
whenReleased :: Applicative f => MouseButtonState -> f () -> f () Source #
data Collection a Source #
Instances
atGlfw :: Collection a -> MouseButton -> a Source #