Safe Haskell | None |
---|
This module contains declarations of used XInput event structures. See XInput2.h for more info.
- genericEvent :: EventType
- type Opcode = CInt
- data EventCookie = EventCookie {}
- data Event = Event {}
- data EventSpecific
- = GPointerEvent { }
- | PropertyEvent {
- peProperty :: Atom
- peWhat :: CInt
- | DeviceChangedEvent {
- dceReason :: CInt
- dceClasses :: [GDeviceClass]
- | UnsupportedEvent CInt
- data PointerEvent
- = EnterLeaveEvent {
- eeMode :: CInt
- eeFocus :: Bool
- eeSameScreen :: Bool
- peButtons :: ButtonState
- peMods :: ModifierState
- peGroup :: GroupState
- | RawEvent { }
- | DeviceEvent { }
- = EnterLeaveEvent {
- data EventType
- eventType2int :: Num a => EventType -> a
- int2eventType :: Integral a => a -> EventType
- data EventMask = EventMask {
- emDeviceID :: DeviceID
- emMask :: [Int]
- type EventMaskPtr = Ptr EventMask
- type EventCookiePtr = Ptr EventCookie
- type EventPtr = Ptr Event
- data DeviceType
- deviceType2int :: DeviceType -> CInt
- int2deviceType :: CInt -> DeviceType
- type DeviceID = CInt
- data DeviceInfo = DeviceInfo {
- diID :: DeviceID
- diName :: String
- diUse :: DeviceType
- diAttachment :: DeviceID
- diEnabled :: Bool
- diClasses :: [GDeviceClass]
- type DeviceInfoPtr = Ptr DeviceInfo
- data DeviceClassType
- data GDeviceClass = GDeviceClass {}
- type GDeviceClassPtr = Ptr GDeviceClass
- type Mask = [CUChar]
- data ButtonState = ButtonState {}
- type ButtonStatePtr = Ptr ButtonState
- data ModifierState = ModifierState {}
- type ModifierStatePtr = Ptr ModifierState
- type GroupState = ModifierState
- type ValuatorState = Map Int Double
- type ValuatorStatePtr = Ptr ValuatorState
- data DeviceClass
- = ButtonClass {
- dcNumButtons :: Int
- dcLabels :: [Atom]
- dcState :: ButtonState
- | KeyClass {
- dcNumKeycodes :: Int
- dcKeycodes :: [Int]
- | ValuatorClass { }
- = ButtonClass {
- data SelectDevices
- data GrabModifiers = GrabModifiers {
- gModifiers :: Int
- gStatus :: Int
- xiAnyModifier :: GrabModifiers
- keymask2grabModifiers :: KeyMask -> GrabModifiers
- type GrabModifiersPtr = Ptr GrabModifiers
- selectDevices :: SelectDevices -> CInt
- ptr2display :: Ptr () -> Display
- display2ptr :: Display -> Ptr ()
- toBool :: (Eq a, Num a) => a -> Bool
- fromBool :: Num a => Bool -> a
- data XInputInitResult
Documentation
XInput events
Event | |
|
data EventSpecific Source
Event-specific info
GPointerEvent | General constructor for all pointer-related events |
| |
PropertyEvent | |
| |
DeviceChangedEvent | |
| |
UnsupportedEvent CInt |
data PointerEvent Source
All pointer-related event details
EnterLeaveEvent | XIEnterEvent or XILeaveEvent |
| |
RawEvent | |
| |
DeviceEvent | Device event, such as button press |
|
XInput event type
eventType2int :: Num a => EventType -> aSource
int2eventType :: Integral a => a -> EventTypeSource
EventMask | |
|
type EventMaskPtr = Ptr EventMaskSource
type EventCookiePtr = Ptr EventCookieSource
data DeviceType Source
data DeviceInfo Source
Device info
DeviceInfo | |
|
type DeviceInfoPtr = Ptr DeviceInfoSource
data DeviceClassType Source
Type of device class
data GDeviceClass Source
Any device class
type GDeviceClassPtr = Ptr GDeviceClassSource
type ButtonStatePtr = Ptr ButtonStateSource
type GroupState = ModifierStateSource
type ValuatorState = Map Int DoubleSource
data DeviceClass Source
Device class specific info
ButtonClass | |
| |
KeyClass | |
| |
ValuatorClass | |
data SelectDevices Source
data GrabModifiers Source
GrabModifiers | |
|
ptr2display :: Ptr () -> DisplaySource
display2ptr :: Display -> Ptr ()Source
data XInputInitResult Source
XInput initialization result