Safe Haskell | None |
---|---|
Language | Haskell2010 |
Create virtual input devices.
Synopsis
- data Device
- newDevice :: ByteString -> DeviceOpts -> IO Device
- writeEvent :: Device -> EventData -> IO ()
- writeBatch :: Foldable t => Device -> t EventData -> IO ()
- defaultDeviceOpts :: DeviceOpts
- data DeviceOpts = DeviceOpts {
- phys :: Maybe ByteString
- uniq :: Maybe ByteString
- idProduct :: Maybe Int
- idVendor :: Maybe Int
- idBustype :: Maybe Int
- idVersion :: Maybe Int
- keys :: [Key]
- relAxes :: [RelativeAxis]
- absAxes :: [(AbsoluteAxis, AbsInfo)]
- miscs :: [MiscEvent]
- switchs :: [SwitchEvent]
- leds :: [LEDEvent]
- sounds :: [SoundEvent]
- reps :: [(RepeatEvent, Int)]
- ffs :: [EventCode]
- powers :: [EventCode]
- ffStats :: [EventCode]
- data AbsInfo = AbsInfo {
- absValue :: Int32
- absMinimum :: Int32
- absMaximum :: Int32
- absFuzz :: Int32
- absFlat :: Int32
- absResolution :: Int32
- deviceSyspath :: Device -> IO (Maybe ByteString)
- deviceDevnode :: Device -> IO (Maybe ByteString)
Documentation
writeEvent :: Device -> EventData -> IO () Source #
Write a single event. Doesn't issue a sync event, so: writeEvent dev e /= writeBatch dev [e]
.
writeBatch :: Foldable t => Device -> t EventData -> IO () Source #
Write several events followed by a SynReport
.
data DeviceOpts Source #
DeviceOpts | |
|
AbsInfo | |
|
deviceSyspath :: Device -> IO (Maybe ByteString) Source #
deviceDevnode :: Device -> IO (Maybe ByteString) Source #