x11-xinput-0.1.0.0: Haskell FFI bindings for X11 XInput library (-lXi)

Safe HaskellNone

Graphics.X11.XInput.Types

Description

This module contains declarations of used XInput event structures. See XInput2.h for more info.

Synopsis

Documentation

data EventCookie Source

Type for X11 cookie events

Constructors

EventCookie 

Fields

ecEvent :: Event

Usual X11 event

ecExtension :: Opcode

X11 extension identifier

ecType :: EventType

Event type

ecCookie :: CUInt
 
ecData :: Event

XInput event

data Event Source

XInput events

Constructors

Event 

Fields

eSendEvent :: Bool

True if event was sent by SendEvent

eDisplay :: Display
 
eExtension :: Opcode

X11 extension identifier

eType :: EventType

Event type

eDeviceId :: DeviceID

Device identifier

eSpecific :: EventSpecific

Event-specific data

Instances

data EventSpecific Source

Event-specific info

Constructors

GPointerEvent

General constructor for all pointer-related events

Fields

peSourceId :: CInt

Source device identifier

peDetail :: Int

Detailed info; for example, button number or keycode

peRoot :: Window

Root window

peEvent :: Window

Event window

peChild :: Window

Child window

peRootX :: CDouble
 
peRootY :: CDouble
 
peEventX :: CDouble
 
peEventY :: CDouble
 
peSpecific :: PointerEvent

Event-specific

PropertyEvent 

Fields

peProperty :: Atom
 
peWhat :: CInt
 
DeviceChangedEvent 
UnsupportedEvent CInt 

data PointerEvent Source

All pointer-related event details

data DeviceInfo Source

Device info

Constructors

DeviceInfo 

Fields

diID :: DeviceID

Device identifier

diName :: String

Device name

diUse :: DeviceType

Device type: master or slave

diAttachment :: DeviceID

Identifier of device this device is attached to

diEnabled :: Bool
 
diClasses :: [GDeviceClass]

Device classes

data DeviceClass Source

Device class specific info

toBool :: (Eq a, Num a) => a -> BoolSource

fromBool :: Num a => Bool -> aSource

data XInputInitResult Source

XInput initialization result

Constructors

NoXInput

Extension is not supported at all.

VersionMismatch Int Int

XInput 2.0 is not supported, but other version is.

InitOK Opcode

XInput 2.0 is supported, return xi_opcode.