Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
KMonad.Keyboard.Ops
Contents
Synopsis
- switch :: HasKeyEvent c => Lens' c Switch
- keycode :: HasKeyEvent c => Lens' c Keycode
- mkKeyEvent :: Switch -> Keycode -> KeyEvent
- mkPress :: Keycode -> KeyEvent
- mkRelease :: Keycode -> KeyEvent
- isPress :: KeyPred
- isRelease :: KeyPred
- isKeycode :: Keycode -> KeyPred
- isPressOf :: Keycode -> KeyPred
- isReleaseOf :: Keycode -> KeyPred
Documentation
Predicates
isKeycode :: Keycode -> KeyPred Source #
Return whether the provided KeyEvent matches a particular Keycode
isPressOf :: Keycode -> KeyPred Source #
Return whether the provided KeyEvent matches the press of the Keycode
isReleaseOf :: Keycode -> KeyPred Source #
Returth whether the provided KeyEvent matches the release of the Keycode