| Copyright | (c) David Janssen 2019 |
|---|---|
| License | MIT |
| Maintainer | janssen.dhj@gmail.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
KMonad.Keyboard.IO.Linux.DeviceSource
Description
Synopsis
- deviceSource :: HasLogFunc e => KeyEventParser -> FilePath -> RIO e (Acquire KeySource)
- deviceSource64 :: HasLogFunc e => FilePath -> RIO e (Acquire KeySource)
- data KeyEventParser
- decode64 :: ByteString -> Either String LinuxKeyEvent
Documentation
Arguments
| :: HasLogFunc e | |
| => KeyEventParser | The method by which to read and decode events |
| -> FilePath | The filepath to the device file |
| -> RIO e (Acquire KeySource) |
Open a device file
Arguments
| :: HasLogFunc e | |
| => FilePath | The filepath to the device file |
| -> RIO e (Acquire KeySource) |
Open a device file on a standard linux 64 bit architecture
data KeyEventParser Source #
A KeyEventParser describes how to read and parse LinuxKeyEvents from
the binary data-stream provided by the device-file.
decode64 :: ByteString -> Either String LinuxKeyEvent Source #
The KeyEventParser that works on my 64-bit Linux environment