Safe Haskell | None |
---|
This module contains FFI imports and thin wrappers for them.
- xinputVersion :: Display -> Ptr CInt -> Ptr CInt -> IO CInt
- setEventMask :: Display -> Window -> [EventType] -> IO ()
- queryDevice :: Display -> SelectDevices -> IO [DeviceInfo]
- grabDevice :: Display -> DeviceID -> Window -> Cursor -> GrabMode -> GrabMode -> Bool -> EventMask -> IO Status
- ungrabDevice :: Display -> DeviceID -> IO Status
- grabButton :: Display -> SelectDevices -> Button -> Window -> Cursor -> GrabMode -> GrabMode -> Bool -> [EventType] -> [GrabModifiers] -> IO [GrabModifiers]
- ungrabButton :: Display -> SelectDevices -> Button -> Window -> [GrabModifiers] -> IO Status
- grabKeycode :: Display -> SelectDevices -> KeyCode -> Window -> GrabMode -> GrabMode -> Bool -> [EventType] -> [GrabModifiers] -> IO [GrabModifiers]
- ungrabKeycode :: Display -> SelectDevices -> KeyCode -> Window -> [GrabModifiers] -> IO Status
- xiQueryDevice :: Display -> CInt -> Ptr CInt -> IO DeviceInfoPtr
- xQueryExtension :: Display -> CString -> Ptr CInt -> Ptr CInt -> Ptr CInt -> IO CInt
- getEventData :: Display -> EventCookiePtr -> IO Bool
- freeEventData :: Display -> EventCookiePtr -> IO ()
XInput initialization
Select XInput events.
Wrappers for XInput calls
:: Display | |
-> SelectDevices | Which devices to list |
-> IO [DeviceInfo] |
Query list of devices
grabDevice :: Display -> DeviceID -> Window -> Cursor -> GrabMode -> GrabMode -> Bool -> EventMask -> IO StatusSource
grabButton :: Display -> SelectDevices -> Button -> Window -> Cursor -> GrabMode -> GrabMode -> Bool -> [EventType] -> [GrabModifiers] -> IO [GrabModifiers]Source
ungrabButton :: Display -> SelectDevices -> Button -> Window -> [GrabModifiers] -> IO StatusSource
grabKeycode :: Display -> SelectDevices -> KeyCode -> Window -> GrabMode -> GrabMode -> Bool -> [EventType] -> [GrabModifiers] -> IO [GrabModifiers]Source
ungrabKeycode :: Display -> SelectDevices -> KeyCode -> Window -> [GrabModifiers] -> IO StatusSource
FFI imports
xiQueryDevice :: Display -> CInt -> Ptr CInt -> IO DeviceInfoPtrSource
getEventData :: Display -> EventCookiePtr -> IO BoolSource
freeEventData :: Display -> EventCookiePtr -> IO ()Source