Documentation ¶
Index ¶
- Constants
- func CloseDevice(conn *x.Conn, deviceId uint8)
- func CloseDeviceChecked(conn *x.Conn, deviceId uint8) x.VoidCookie
- func Ext() *x.Extension
- func SelectExtensionEvent(conn *x.Conn, window x.Window, classes []EventClass)
- func SelectExtensionEventChecked(conn *x.Conn, window x.Window, classes []EventClass) x.VoidCookie
- func XIAllowEvents(conn *x.Conn, time x.Timestamp, deviceId DeviceId, eventMode uint8, ...)
- func XIAllowEventsChecked(conn *x.Conn, time x.Timestamp, deviceId DeviceId, eventMode uint8, ...) x.VoidCookie
- func XIChangeCursor(conn *x.Conn, window x.Window, cursor x.Cursor, deviceId DeviceId)
- func XIChangeCursorChecked(conn *x.Conn, window x.Window, cursor x.Cursor, deviceId DeviceId) x.VoidCookie
- func XIChangeHierarchy(conn *x.Conn, changes []HierarchyChange)
- func XIChangeHierarchyChecked(conn *x.Conn, changes []HierarchyChange) x.VoidCookie
- func XIChangeProperty(conn *x.Conn, deviceId DeviceId, mode uint8, format uint8, property x.Atom, ...)
- func XIChangePropertyChecked(conn *x.Conn, deviceId DeviceId, mode uint8, format uint8, property x.Atom, ...) x.VoidCookie
- func XIDeleteProperty(conn *x.Conn, deviceId DeviceId, property x.Atom)
- func XIDeletePropertyChecked(conn *x.Conn, deviceId DeviceId, property x.Atom) x.VoidCookie
- func XIPassiveUngrabDevice(conn *x.Conn, grabWindow x.Window, detail uint32, deviceId DeviceId, ...)
- func XIPassiveUngrabDeviceChecked(conn *x.Conn, grabWindow x.Window, detail uint32, deviceId DeviceId, ...) x.VoidCookie
- func XISelectEvents(conn *x.Conn, window x.Window, masks []EventMask)
- func XISelectEventsChecked(conn *x.Conn, window x.Window, masks []EventMask) x.VoidCookie
- func XISetClientPointer(conn *x.Conn, window x.Window, deviceId DeviceId)
- func XISetClientPointerChecked(conn *x.Conn, window x.Window, deviceId DeviceId) x.VoidCookie
- func XISetFocus(conn *x.Conn, focus x.Window, time x.Timestamp, deviceId DeviceId)
- func XISetFocusChecked(conn *x.Conn, focus x.Window, time x.Timestamp, deviceId DeviceId) x.VoidCookie
- func XIUngrabDevice(conn *x.Conn, time x.Timestamp, deviceId DeviceId)
- func XIUngrabDeviceChecked(conn *x.Conn, time x.Timestamp, deviceId DeviceId) x.VoidCookie
- func XIWarpPointer(conn *x.Conn, srcWin, dstWin x.Window, srcX, srcY float32, ...)
- func XIWarpPointerChecked(conn *x.Conn, srcWin, dstWin x.Window, srcX, srcY float32, ...) x.VoidCookie
- type AddMaster
- type AttachSlave
- type BarrierEvent
- type BarrierHitEvent
- type BarrierLeaveEvent
- type ButtonClass
- type ButtonPressEvent
- type ButtonReleaseEvent
- type ChangeDeviceControlCookie
- type ChangeDeviceNotifyEvent
- type ChangeKeyboardDeviceCookie
- type ChangePointerDeviceCookie
- type ClassInfo
- type DetachSlave
- type DeviceButtonPressEvent
- type DeviceButtonReleaseEvent
- type DeviceButtonStateNotifyEvent
- type DeviceChangedEvent
- type DeviceClass
- type DeviceEvent
- type DeviceFocusEvent
- type DeviceFocusInEvent
- type DeviceFocusOutEvent
- type DeviceId
- type DeviceKeyEvent
- type DeviceKeyPressEvent
- type DeviceKeyReleaseEvent
- type DeviceKeyStateNotifyEvent
- type DeviceMappingNotifyEvent
- type DeviceMotionNotifyEvent
- type DevicePresenceNotifyEvent
- type DevicePropertyNotifyEvent
- type DeviceStateNotifyEvent
- type DeviceValuatorEvent
- type EnterEvent
- type EnterLeaveEvent
- type EventClass
- type EventHeader
- type EventMask
- type EventTypeBase
- type FocusInEvent
- type FocusOutEvent
- type Fp1616
- type GenericDeviceClass
- type GetDeviceButtonMappingCookie
- type GetDeviceControlCookie
- type GetDeviceDontPropagateListCookie
- type GetDeviceFocusCookie
- type GetDeviceKeyMappingCookie
- type GetDeviceModifierMappingCookie
- type GetDeviceMotionEventsCookie
- type GetDevicePropertyCookie
- type GetExtensionVersionCookie
- type GetFeedbackControlCookie
- type GetSelectedExtensionEventsCookie
- type GrabDeviceCookie
- type GrabModifierInfo
- type GroupInfo
- type HierarchyChange
- type HierarchyEvent
- type HierarchyInfo
- type KeyClass
- type KeyCode
- type KeyPressEvent
- type KeyReleaseEvent
- type LeaveEvent
- type ListDevicePropertiesCookie
- type ListInputDevicesCookie
- type ModifierInfo
- type MotionEvent
- type OpenDeviceCookie
- type OpenDeviceReply
- type PropertyEvent
- type ProximityInEvent
- type ProximityOutEvent
- type QueryDeviceStateCookie
- type RawButtonPressEvent
- type RawButtonReleaseEvent
- type RawEvent
- type RawKeyPressEvent
- type RawKeyReleaseEvent
- type RawMotionEvent
- type RawTouchBeginEvent
- type RawTouchEndEvent
- type RawTouchUpdateEvent
- type RemoveMaster
- type ScrollClass
- type SetDeviceButtonMappingCookie
- type SetDeviceModeCookie
- type SetDeviceModifierMappingCookie
- type SetDeviceValuatorsCookie
- type TouchBeginEvent
- type TouchClass
- type TouchEndEvent
- type TouchOwnershipEvent
- type TouchUpdateEvent
- type ValuatorClass
- type XIDeviceInfo
- type XIGetClientPointerCookie
- type XIGetClientPointerReply
- type XIGetFocusCookie
- type XIGetFocusReply
- type XIGetPropertyCookie
- type XIGetPropertyReply
- type XIGetSelectedEventsCookie
- type XIGetSelectedEventsReply
- type XIGrabDeviceCookie
- type XIGrabDeviceReply
- type XIListPropertiesCookie
- type XIListPropertiesReply
- type XIPassiveGrabDeviceCookie
- type XIPassiveGrabDeviceReply
- type XIQueryDeviceCookie
- type XIQueryDeviceReply
- type XIQueryPointerCookie
- type XIQueryPointerReply
- type XIQueryVersionCookie
- type XIQueryVersionReply
Constants ¶
const ( DeviceUseIsXPointer = 0 DeviceUseIsXKeyboard = 1 DeviceUseIsXExtensionDevice = 2 DeviceUseIsXExtensionKeyboard = 3 DeviceUseIsXExtensionPointer = 4 )
enum DeviceUse
const ( InputClassKey = 0 InputClassButton = 1 InputClassValuator = 2 InputClassFeedback = 3 InputClassProximity = 4 InputClassFocus = 5 InputClassOther = 6 )
enum InputClass
const ( ValuatorModeRelative = 0 ValuatorModeAbsolute = 1 )
enum ValuatorMode
const ( PropagateModeAddToList = 0 PropagateModeDeleteFromList = 1 )
enum PropagateMode
const ( DeviceInputModeAsyncThisDevice = 0 DeviceInputModeSyncThisDevice = 1 DeviceInputModeReplayThisDevice = 2 DeviceInputModeAsyncOtherDevices = 3 DeviceInputModeAsyncAll = 4 DeviceInputModeSyncAll = 5 )
enum DeviceInputMode
const ( FeedbackClassKeyboard = 0 FeedbackClassPointer = 1 FeedbackClassString = 2 FeedbackClassInteger = 3 FeedbackClassLed = 4 FeedbackClassBell = 5 )
enum FeedbackClass
const ( ChangeFeedbackControlMaskKeyClickPercent = 1 ChangeFeedbackControlMaskPercent = 2 ChangeFeedbackControlMaskPitch = 4 ChangeFeedbackControlMaskDuration = 8 ChangeFeedbackControlMaskLed = 16 ChangeFeedbackControlMaskLedMode = 32 ChangeFeedbackControlMaskKey = 64 ChangeFeedbackControlMaskAutoRepeatMode = 128 ChangeFeedbackControlMaskString = 1 ChangeFeedbackControlMaskInteger = 1 ChangeFeedbackControlMaskAccelNum = 1 ChangeFeedbackControlMaskAccelDenom = 2 ChangeFeedbackControlMaskThreshold = 4 )
enum ChangeFeedbackControlMask
const ( ValuatorStateModeMaskDeviceModeAbsolute = 1 ValuatorStateModeMaskOutOfProximity = 2 )
enum ValuatorStateModeMask
const ( DeviceControlResolution = 1 DeviceControlAbsCalib = 2 DeviceControlCore = 3 DeviceControlEnable = 4 DeviceControlAbsArea = 5 )
enum DeviceControl
const ( PropertyFormat8Bits = 8 PropertyFormat16Bits = 16 PropertyFormat32Bits = 32 )
enum PropertyFormat
const ( DeviceAll = 0 DeviceAllMaster = 1 )
enum Device
const ( HierarchyChangeTypeAddMaster = 1 HierarchyChangeTypeRemoveMaster = 2 HierarchyChangeTypeAttachSlave = 3 HierarchyChangeTypeDetachSlave = 4 )
enum HierarchyChangeType
const ( ChangeModeAttach = 1 ChangeModeFloat = 2 )
enum ChangeMode
const ( XIEventMaskDeviceChanged = 2 XIEventMaskKeyPress = 4 XIEventMaskKeyRelease = 8 XIEventMaskButtonPress = 16 XIEventMaskButtonRelease = 32 XIEventMaskMotion = 64 XIEventMaskEnter = 128 XIEventMaskLeave = 256 XIEventMaskFocusIn = 512 XIEventMaskFocusOut = 1024 XIEventMaskHierarchy = 2048 XIEventMaskProperty = 4096 XIEventMaskRawKeyPress = 8192 XIEventMaskRawKeyRelease = 16384 XIEventMaskRawButtonPress = 32768 XIEventMaskRawButtonRelease = 65536 XIEventMaskRawMotion = 131072 XIEventMaskTouchBegin = 262144 XIEventMaskTouchUpdate = 524288 XIEventMaskTouchEnd = 1048576 XIEventMaskTouchOwnership = 2097152 XIEventMaskRawTouchBegin = 4194304 XIEventMaskRawTouchUpdate = 8388608 XIEventMaskRawTouchEnd = 16777216 XIEventMaskBarrierHit = 33554432 XIEventMaskBarrierLeave = 67108864 )
enum XIEventMask
const ( DeviceClassTypeKey = 0 DeviceClassTypeButton = 1 DeviceClassTypeValuator = 2 DeviceClassTypeScroll = 3 DeviceClassTypeTouch = 8 )
enum DeviceClassType
const ( DeviceTypeMasterPointer = 1 DeviceTypeMasterKeyboard = 2 DeviceTypeSlavePointer = 3 DeviceTypeSlaveKeyboard = 4 DeviceTypeFloatingSlave = 5 )
enum DeviceType
const ( ScrollFlagsNoEmulation = 1 ScrollFlagsPreferred = 2 )
enum ScrollFlags
const ( ScrollTypeVertical = 1 ScrollTypeHorizontal = 2 )
enum ScrollType
const ( TouchModeDirect = 1 TouchModeDependent = 2 )
enum TouchMode
const ( GrabOwnerNoOwner = 0 GrabOwnerOwner = 1 )
enum GrabOwner
const ( EventModeAsyncDevice = 0 EventModeSyncDevice = 1 EventModeReplayDevice = 2 EventModeAsyncPairedDevice = 3 EventModeAsyncPair = 4 EventModeSyncPair = 5 EventModeAcceptTouch = 6 EventModeRejectTouch = 7 )
enum EventMode
const ( GrabMode22Sync = 0 GrabMode22Async = 1 GrabMode22Touch = 2 )
enum GrabMode22
const ( GrabTypeButton = 0 GrabTypeKeycode = 1 GrabTypeEnter = 2 GrabTypeFocusIn = 3 GrabTypeTouchBegin = 4 )
enum GrabType
const ( ClassesReportedMaskOutOfProximity = 128 ClassesReportedMaskDeviceModeAbsolute = 64 ClassesReportedMaskReportingValuators = 4 ClassesReportedMaskReportingButtons = 2 ClassesReportedMaskReportingKeys = 1 )
enum ClassesReportedMask
const ( ChangeDeviceNewPointer = 0 ChangeDeviceNewKeyboard = 1 )
enum ChangeDevice
const ( DeviceChangeAdded = 0 DeviceChangeRemoved = 1 DeviceChangeEnabled = 2 DeviceChangeDisabled = 3 DeviceChangeUnrecoverable = 4 DeviceChangeControlChanged = 5 )
enum DeviceChange
const ( ChangeReasonSlaveSwitch = 1 ChangeReasonDeviceChange = 2 )
enum ChangeReason
const ( NotifyModeNormal = 0 NotifyModeGrab = 1 NotifyModeUngrab = 2 NotifyModeWhileGrabbed = 3 NotifyModePassiveGrab = 4 NotifyModePassiveUngrab = 5 )
enum NotifyMode
const ( NotifyDetailAncestor = 0 NotifyDetailVirtual = 1 NotifyDetailInferior = 2 NotifyDetailNonlinear = 3 NotifyDetailNonlinearVirtual = 4 NotifyDetailPointer = 5 NotifyDetailPointerRoot = 6 NotifyDetailNone = 7 )
enum NotifyDetail
const ( HierarchyMaskMasterAdded = 1 HierarchyMaskMasterRemoved = 2 HierarchyMaskSlaveAdded = 4 HierarchyMaskSlaveRemoved = 8 HierarchyMaskSlaveAttached = 16 HierarchyMaskSlaveDetached = 32 HierarchyMaskDeviceEnabled = 64 HierarchyMaskDeviceDisabled = 128 )
enum HierarchyMask
const ( PropertyFlagDeleted = 0 PropertyFlagCreated = 1 PropertyFlagModified = 2 )
enum PropertyFlag
const ( TouchEventFlagsTouchPendingEnd = 65536 TouchEventFlagsTouchEmulatingPointer = 131072 )
enum TouchEventFlags
const ( BarrierFlagsPointerReleased = 1 BarrierFlagsDeviceIsGrabbed = 2 )
enum BarrierFlags
const AllowDeviceEventsOpcode = 19
const BarrierHitEventCode = 25
const BarrierLeaveEventCode = 26
const ButtonPressEventCode = 4
const ButtonReleaseEventCode = 5
const ChangeDeviceControlOpcode = 35
const ChangeDeviceDontPropagateListOpcode = 8
const ChangeDeviceKeyMappingOpcode = 25
const ChangeDeviceNotifyEventCode = 12
const ChangeDevicePropertyOpcode = 37
const ChangeFeedbackControlOpcode = 23
const ChangeKeyboardDeviceOpcode = 11
const ChangePointerDeviceOpcode = 12
const ClassErrorCode = 4
const CloseDeviceOpcode = 4
const DeleteDevicePropertyOpcode = 38
const DeviceBellOpcode = 32
const DeviceBusyErrorCode = 3
const DeviceButtonPressEventCode = 3
const DeviceButtonReleaseEventCode = 4
const DeviceButtonStateNotifyEventCode = 14
const DeviceChangedEventCode = 1
const DeviceErrorCode = 0
const DeviceFocusInEventCode = 6
const DeviceFocusOutEventCode = 7
const DeviceKeyPressEventCode = 1
const DeviceKeyReleaseEventCode = 2
const DeviceKeyStateNotifyEventCode = 13
const DeviceMappingNotifyEventCode = 11
const DeviceMotionNotifyEventCode = 5
const DevicePresenceNotifyEventCode = 15
const DevicePropertyNotifyEventCode = 16
const DeviceStateNotifyEventCode = 10
const DeviceValuatorEventCode = 0
const EnterEventCode = 7
const EventErrorCode = 1
const FocusInEventCode = 9
const FocusOutEventCode = 10
const GetDeviceButtonMappingOpcode = 28
const GetDeviceControlOpcode = 34
const GetDeviceDontPropagateListOpcode = 9
const GetDeviceFocusOpcode = 20
const GetDeviceKeyMappingOpcode = 24
const GetDeviceModifierMappingOpcode = 26
const GetDeviceMotionEventsOpcode = 10
const GetDevicePropertyOpcode = 39
const GetExtensionVersionOpcode = 1
const GetFeedbackControlOpcode = 22
const GetSelectedExtensionEventsOpcode = 7
const GrabDeviceButtonOpcode = 17
const GrabDeviceKeyOpcode = 15
const GrabDeviceOpcode = 13
const HierarchyEventCode = 11
const (
KeyEventFlagsKeyRepeat = 65536
)
enum KeyEventFlags
const KeyPressEventCode = 2
const KeyReleaseEventCode = 3
const LeaveEventCode = 8
const ListDevicePropertiesOpcode = 36
const ListInputDevicesOpcode = 2
const MajorVersion = 2
_ns.ext_name: Input
const MinorVersion = 3
const ModeErrorCode = 2
const (
ModifierDeviceUseXKeyboard = 255
)
enum ModifierDevice
const (
ModifierMaskAny = 2147483648
)
enum ModifierMask
const (
MoreEventsMaskMoreEvents = 128
)
enum MoreEventsMask
const MotionEventCode = 6
const OpenDeviceOpcode = 3
const (
PointerEventFlagsPointerEmulated = 65536
)
enum PointerEventFlags
const PropertyEventCode = 12
const ProximityInEventCode = 8
const ProximityOutEventCode = 9
const QueryDeviceStateOpcode = 30
const RawButtonPressEventCode = 15
const RawButtonReleaseEventCode = 16
const RawKeyPressEventCode = 13
const RawKeyReleaseEventCode = 14
const RawMotionEventCode = 17
const RawTouchBeginEventCode = 22
const RawTouchEndEventCode = 24
const RawTouchUpdateEventCode = 23
const SelectExtensionEventOpcode = 6
const SendExtensionEventOpcode = 31
const SetDeviceButtonMappingOpcode = 29
const SetDeviceFocusOpcode = 21
const SetDeviceModeOpcode = 5
const SetDeviceModifierMappingOpcode = 27
const SetDeviceValuatorsOpcode = 33
const TouchBeginEventCode = 18
const TouchEndEventCode = 20
const TouchOwnershipEventCode = 21
const (
TouchOwnershipFlagsNone = 0
)
enum TouchOwnershipFlags
const TouchUpdateEventCode = 19
const UngrabDeviceButtonOpcode = 18
const UngrabDeviceKeyOpcode = 16
const UngrabDeviceOpcode = 14
const XIAllowEventsOpcode = 53
const XIBarrierReleasePointerOpcode = 61
const XIChangeCursorOpcode = 42
const XIChangeHierarchyOpcode = 43
const XIChangePropertyOpcode = 57
const XIDeletePropertyOpcode = 58
const XIGetClientPointerOpcode = 45
const XIGetFocusOpcode = 50
const XIGetPropertyOpcode = 59
const XIGetSelectedEventsOpcode = 60
const XIGrabDeviceOpcode = 51
const XIListPropertiesOpcode = 56
const XIPassiveGrabDeviceOpcode = 54
const XIPassiveUngrabDeviceOpcode = 55
const XIQueryDeviceOpcode = 48
const XIQueryPointerOpcode = 40
const XIQueryVersionOpcode = 47
const XISelectEventsOpcode = 46
const XISetClientPointerOpcode = 44
const XISetFocusOpcode = 49
const XIUngrabDeviceOpcode = 52
const XIWarpPointerOpcode = 41
Variables ¶
This section is empty.
Functions ¶
func CloseDevice ¶
func CloseDeviceChecked ¶
func CloseDeviceChecked(conn *x.Conn, deviceId uint8) x.VoidCookie
func SelectExtensionEvent ¶
func SelectExtensionEvent(conn *x.Conn, window x.Window, classes []EventClass)
func SelectExtensionEventChecked ¶
func SelectExtensionEventChecked(conn *x.Conn, window x.Window, classes []EventClass) x.VoidCookie
func XIAllowEvents ¶
func XIAllowEventsChecked ¶
func XIChangeCursor ¶
func XIChangeCursorChecked ¶
func XIChangeHierarchy ¶
func XIChangeHierarchy(conn *x.Conn, changes []HierarchyChange)
func XIChangeHierarchyChecked ¶
func XIChangeHierarchyChecked(conn *x.Conn, changes []HierarchyChange) x.VoidCookie
func XIChangeProperty ¶
func XIChangePropertyChecked ¶
func XIDeletePropertyChecked ¶
func XIPassiveUngrabDevice ¶
func XISelectEventsChecked ¶
func XISetFocus ¶
func XISetFocusChecked ¶
func XIUngrabDeviceChecked ¶
func XIWarpPointer ¶
Types ¶
type BarrierEvent ¶
type BarrierEvent struct { EventHeader EventId uint32 Root x.Window Event x.Window Barrier xfixes.Barrier DTime uint32 Flags uint32 SourceId DeviceId RootX float32 RootY float32 DX float64 DY float64 }
ge event
type BarrierHitEvent ¶
type BarrierHitEvent struct {
BarrierEvent
}
func NewBarrierHitEvent ¶
func NewBarrierHitEvent(data []byte) (*BarrierHitEvent, error)
type BarrierLeaveEvent ¶
type BarrierLeaveEvent struct {
BarrierHitEvent
}
func NewBarrierLeaveEvent ¶
func NewBarrierLeaveEvent(data []byte) (*BarrierLeaveEvent, error)
type ButtonClass ¶
func (*ButtonClass) GetDeviceClassType ¶
func (*ButtonClass) GetDeviceClassType() uint16
func (*ButtonClass) GetSourceId ¶
func (bc *ButtonClass) GetSourceId() DeviceId
type ButtonPressEvent ¶
type ButtonPressEvent struct {
DeviceEvent
}
func NewButtonPressEvent ¶
func NewButtonPressEvent(data []byte) (*ButtonPressEvent, error)
type ButtonReleaseEvent ¶
type ButtonReleaseEvent struct {
DeviceEvent
}
func NewButtonReleaseEvent ¶
func NewButtonReleaseEvent(data []byte) (*ButtonReleaseEvent, error)
type ChangeDeviceNotifyEvent ¶
type ChangeDeviceNotifyEvent struct { DeviceId uint8 Sequence uint16 Time x.Timestamp Request uint8 }
func NewChangeDeviceNotifyEvent ¶
func NewChangeDeviceNotifyEvent(data []byte) (*ChangeDeviceNotifyEvent, error)
type DeviceButtonPressEvent ¶
type DeviceButtonPressEvent struct {
DeviceKeyEvent
}
func NewDeviceButtonPressEvent ¶
func NewDeviceButtonPressEvent(data []byte) (*DeviceButtonPressEvent, error)
type DeviceButtonReleaseEvent ¶
type DeviceButtonReleaseEvent struct {
DeviceKeyEvent
}
func NewDeviceButtonReleaseEvent ¶
func NewDeviceButtonReleaseEvent(data []byte) (*DeviceButtonReleaseEvent, error)
type DeviceButtonStateNotifyEvent ¶
type DeviceButtonStateNotifyEvent struct { DeviceId uint8 Sequence uint16 Buttons []uint8 // len: 28 }
func NewDeviceButtonStateNotifyEvent ¶
func NewDeviceButtonStateNotifyEvent(data []byte) (*DeviceButtonStateNotifyEvent, error)
type DeviceChangedEvent ¶
type DeviceChangedEvent struct { EventHeader SourceId DeviceId Reason uint8 Classes []DeviceClass }
func NewDeviceChangedEvent ¶
func NewDeviceChangedEvent(data []byte) (*DeviceChangedEvent, error)
type DeviceClass ¶
type DeviceEvent ¶
type DeviceEvent struct { EventHeader Detail uint32 Root x.Window Event x.Window Child x.Window RootX float32 RootY float32 EventX float32 EventY float32 SourceId DeviceId Flags uint32 Mods ModifierInfo Group GroupInfo ButtonMask []uint32 ValuatorMask []uint32 AxisValues []float32 }
ge event
type DeviceFocusEvent ¶
type DeviceFocusInEvent ¶
type DeviceFocusInEvent struct {
DeviceFocusEvent
}
func NewDeviceFocusInEvent ¶
func NewDeviceFocusInEvent(data []byte) (*DeviceFocusInEvent, error)
type DeviceFocusOutEvent ¶
type DeviceFocusOutEvent struct {
DeviceFocusEvent
}
func NewDeviceFocusOutEvent ¶
func NewDeviceFocusOutEvent(data []byte) (*DeviceFocusOutEvent, error)
type DeviceKeyEvent ¶
type DeviceKeyPressEvent ¶
type DeviceKeyPressEvent struct {
DeviceKeyEvent
}
func NewDeviceKeyPressEvent ¶
func NewDeviceKeyPressEvent(data []byte) (*DeviceKeyPressEvent, error)
type DeviceKeyReleaseEvent ¶
type DeviceKeyReleaseEvent struct {
DeviceKeyEvent
}
func NewDeviceKeyReleaseEvent ¶
func NewDeviceKeyReleaseEvent(data []byte) (*DeviceKeyReleaseEvent, error)
type DeviceKeyStateNotifyEvent ¶
func NewDeviceKeyStateNotifyEvent ¶
func NewDeviceKeyStateNotifyEvent(data []byte) (*DeviceKeyStateNotifyEvent, error)
type DeviceMappingNotifyEvent ¶
type DeviceMappingNotifyEvent struct { DeviceId uint8 Sequence uint16 Request uint8 FirstKeycode x.Keycode Count uint8 Time x.Timestamp }
func NewDeviceMappingNotifyEvent ¶
func NewDeviceMappingNotifyEvent(data []byte) (*DeviceMappingNotifyEvent, error)
type DeviceMotionNotifyEvent ¶
type DeviceMotionNotifyEvent struct {
DeviceKeyEvent
}
func NewDeviceMotionNotifyEvent ¶
func NewDeviceMotionNotifyEvent(data []byte) (*DeviceMotionNotifyEvent, error)
type DevicePresenceNotifyEvent ¶
type DevicePresenceNotifyEvent struct { Sequence uint16 Time x.Timestamp DevChange uint8 DeviceId uint8 Control uint16 }
func NewDevicePresenceNotifyEvent ¶
func NewDevicePresenceNotifyEvent(data []byte) (*DevicePresenceNotifyEvent, error)
type DevicePropertyNotifyEvent ¶
type DevicePropertyNotifyEvent struct { State uint8 Sequence uint16 Time x.Timestamp Property x.Atom DeviceId uint8 }
func NewDevicePropertyNotifyEvent ¶
func NewDevicePropertyNotifyEvent(data []byte) (*DevicePropertyNotifyEvent, error)
type DeviceStateNotifyEvent ¶
type DeviceStateNotifyEvent struct { DeviceId uint8 Sequence uint16 Time x.Timestamp NumKeys uint8 NumButtons uint8 NumValuators uint8 ClassesReported uint8 Buttons []uint8 // len 4 Keys []uint8 // len 4 Valuators []uint32 // len 3 }
func NewDeviceStateNotifyEvent ¶
func NewDeviceStateNotifyEvent(data []byte) (*DeviceStateNotifyEvent, error)
type DeviceValuatorEvent ¶
type DeviceValuatorEvent struct { DeviceId uint8 Sequence uint16 DeviceState uint16 FirstValuator uint8 Valuators []int32 }
func NewDeviceValuatorEvent ¶
func NewDeviceValuatorEvent(data []byte) (*DeviceValuatorEvent, error)
type EnterEvent ¶
type EnterEvent struct {
EnterLeaveEvent
}
func NewEnterEvent ¶
func NewEnterEvent(data []byte) (*EnterEvent, error)
type EnterLeaveEvent ¶
type EnterLeaveEvent struct { EventHeader SourceId DeviceId Mode uint8 Detail uint8 Root x.Window Event x.Window Child x.Window RootX float32 RootY float32 EventX float32 EventY float32 SameScreen bool Focus bool Mods ModifierInfo Group GroupInfo Buttons []uint32 }
ge event
type EventClass ¶
type EventClass uint32
simple ('xcb', 'Input', 'EventClass')
func FindTypeAndClass ¶
type EventHeader ¶
type EventHeader struct { DeviceId DeviceId Time x.Timestamp }
type FocusInEvent ¶
type FocusInEvent struct {
EnterLeaveEvent
}
func NewFocusInEvent ¶
func NewFocusInEvent(data []byte) (*FocusInEvent, error)
type FocusOutEvent ¶
type FocusOutEvent struct {
EnterLeaveEvent
}
func NewFocusOutEvent ¶
func NewFocusOutEvent(data []byte) (*FocusOutEvent, error)
type GenericDeviceClass ¶
func (*GenericDeviceClass) GetDeviceClassType ¶
func (dc *GenericDeviceClass) GetDeviceClassType() uint16
func (*GenericDeviceClass) GetSourceId ¶
func (dc *GenericDeviceClass) GetSourceId() DeviceId
type GetDeviceControlCookie ¶
type GetDeviceFocusCookie ¶
type GetDevicePropertyCookie ¶
type GrabDeviceCookie ¶
type HierarchyChange ¶
type HierarchyChange interface {
// contains filtered or unexported methods
}
type HierarchyEvent ¶
type HierarchyEvent struct { EventHeader Flags uint32 Infos []HierarchyInfo }
ge event
func NewHierarchyEvent ¶
func NewHierarchyEvent(data []byte) (*HierarchyEvent, error)
type HierarchyInfo ¶
type HierarchyInfo struct { DeviceId DeviceId Attachment DeviceId Type uint8 Enabled bool Flags uint32 }
size: 3 * 4b
type KeyPressEvent ¶
type KeyPressEvent struct {
DeviceEvent
}
func NewKeyPressEvent ¶
func NewKeyPressEvent(data []byte) (*KeyPressEvent, error)
type KeyReleaseEvent ¶
type KeyReleaseEvent struct {
DeviceEvent
}
func NewKeyReleaseEvent ¶
func NewKeyReleaseEvent(data []byte) (*KeyReleaseEvent, error)
type LeaveEvent ¶
type LeaveEvent struct {
EnterLeaveEvent
}
func NewLeaveEvent ¶
func NewLeaveEvent(data []byte) (*LeaveEvent, error)
type ListInputDevicesCookie ¶
type ModifierInfo ¶
size: 4 * 4b
type MotionEvent ¶
type MotionEvent struct {
DeviceEvent
}
func NewMotionEvent ¶
func NewMotionEvent(data []byte) (*MotionEvent, error)
type OpenDeviceCookie ¶
func OpenDevice ¶
func OpenDevice(conn *x.Conn, deviceId uint8) OpenDeviceCookie
func (OpenDeviceCookie) Reply ¶
func (cookie OpenDeviceCookie) Reply(conn *x.Conn) (*OpenDeviceReply, error)
type OpenDeviceReply ¶
type PropertyEvent ¶
type PropertyEvent struct { EventHeader Property x.Atom What uint8 }
ge event
func NewPropertyEvent ¶
func NewPropertyEvent(data []byte) (*PropertyEvent, error)
type ProximityInEvent ¶
type ProximityInEvent struct {
DeviceKeyEvent
}
func NewProximityInEvent ¶
func NewProximityInEvent(data []byte) (*ProximityInEvent, error)
type ProximityOutEvent ¶
type ProximityOutEvent struct {
DeviceKeyEvent
}
func NewProximityOutEvent ¶
func NewProximityOutEvent(data []byte) (*ProximityOutEvent, error)
type QueryDeviceStateCookie ¶
type RawButtonPressEvent ¶
type RawButtonPressEvent struct {
RawEvent
}
func NewRawButtonPressEvent ¶
func NewRawButtonPressEvent(data []byte) (*RawButtonPressEvent, error)
type RawButtonReleaseEvent ¶
type RawButtonReleaseEvent struct {
RawEvent
}
func NewRawButtonReleaseEvent ¶
func NewRawButtonReleaseEvent(data []byte) (*RawButtonReleaseEvent, error)
type RawEvent ¶
type RawEvent struct { EventHeader Detail uint32 SourceId DeviceId Flags uint32 ValuatorMask []uint32 AxisValues []float32 AxisValuesRaw []float32 }
ge event
type RawKeyPressEvent ¶
type RawKeyPressEvent struct {
RawEvent
}
func NewRawKeyPressEvent ¶
func NewRawKeyPressEvent(data []byte) (*RawKeyPressEvent, error)
type RawKeyReleaseEvent ¶
type RawKeyReleaseEvent struct {
RawEvent
}
func NewRawKeyReleaseEvent ¶
func NewRawKeyReleaseEvent(data []byte) (*RawKeyReleaseEvent, error)
type RawMotionEvent ¶
type RawMotionEvent struct {
RawEvent
}
func NewRawMotionEvent ¶
func NewRawMotionEvent(data []byte) (*RawMotionEvent, error)
type RawTouchBeginEvent ¶
type RawTouchBeginEvent struct {
RawEvent
}
func NewRawTouchBeginEvent ¶
func NewRawTouchBeginEvent(data []byte) (*RawTouchBeginEvent, error)
type RawTouchEndEvent ¶
type RawTouchEndEvent struct {
RawEvent
}
func NewRawTouchEndEvent ¶
func NewRawTouchEndEvent(data []byte) (*RawTouchEndEvent, error)
type RawTouchUpdateEvent ¶
type RawTouchUpdateEvent struct {
RawEvent
}
func NewRawTouchUpdateEvent ¶
func NewRawTouchUpdateEvent(data []byte) (*RawTouchUpdateEvent, error)
type RemoveMaster ¶
type RemoveMaster struct { DeviceId DeviceId ReturnMode uint8 ReturnPointer DeviceId ReturnKeyboard DeviceId }
size 2 * 4byte
type ScrollClass ¶
type ScrollClass struct { SourceId DeviceId Number uint16 ScrollType uint16 Flags uint32 Increment float64 }
func (*ScrollClass) GetDeviceClassType ¶
func (*ScrollClass) GetDeviceClassType() uint16
func (*ScrollClass) GetSourceId ¶
func (sc *ScrollClass) GetSourceId() DeviceId
type SetDeviceModeCookie ¶
type TouchBeginEvent ¶
type TouchBeginEvent struct {
DeviceEvent
}
func NewTouchBeginEvent ¶
func NewTouchBeginEvent(data []byte) (*TouchBeginEvent, error)
type TouchClass ¶
func (*TouchClass) GetDeviceClassType ¶
func (*TouchClass) GetDeviceClassType() uint16
func (*TouchClass) GetSourceId ¶
func (tc *TouchClass) GetSourceId() DeviceId
type TouchEndEvent ¶
type TouchEndEvent struct {
DeviceEvent
}
func NewTouchEndEvent ¶
func NewTouchEndEvent(data []byte) (*TouchEndEvent, error)
type TouchOwnershipEvent ¶
type TouchOwnershipEvent struct { EventHeader TouchId uint32 Root x.Window Event x.Window Child x.Window SourceId DeviceId Flags uint32 }
func NewTouchOwnershipEvent ¶
func NewTouchOwnershipEvent(data []byte) (*TouchOwnershipEvent, error)
type TouchUpdateEvent ¶
type TouchUpdateEvent struct {
DeviceEvent
}
func NewTouchUpdateEvent ¶
func NewTouchUpdateEvent(data []byte) (*TouchUpdateEvent, error)
type ValuatorClass ¶
type ValuatorClass struct { SourceId DeviceId Number uint16 Label x.Atom Min float64 Max float64 Value float64 Resolution uint32 Mode uint8 }
also called AxisClass
func (*ValuatorClass) GetDeviceClassType ¶
func (*ValuatorClass) GetDeviceClassType() uint16
func (*ValuatorClass) GetSourceId ¶
func (vc *ValuatorClass) GetSourceId() DeviceId
type XIDeviceInfo ¶
type XIGetClientPointerCookie ¶
func XIGetClientPointer ¶
func XIGetClientPointer(conn *x.Conn, window x.Window) XIGetClientPointerCookie
func (XIGetClientPointerCookie) Reply ¶
func (cookie XIGetClientPointerCookie) Reply(conn *x.Conn) (*XIGetClientPointerReply, error)
type XIGetClientPointerReply ¶
type XIGetFocusCookie ¶
func XIGetFocus ¶
func XIGetFocus(conn *x.Conn, deviceId DeviceId) XIGetFocusCookie
func (XIGetFocusCookie) Reply ¶
func (cookie XIGetFocusCookie) Reply(conn *x.Conn) (*XIGetFocusReply, error)
type XIGetFocusReply ¶
type XIGetFocusReply struct {
Focus x.Window
}
type XIGetPropertyCookie ¶
func XIGetProperty ¶
func (XIGetPropertyCookie) Reply ¶
func (cookie XIGetPropertyCookie) Reply(conn *x.Conn) (*XIGetPropertyReply, error)
type XIGetPropertyReply ¶
type XIGetSelectedEventsCookie ¶
func XIGetSelectedEvents ¶
func XIGetSelectedEvents(conn *x.Conn, window x.Window) XIGetSelectedEventsCookie
func (XIGetSelectedEventsCookie) Reply ¶
func (cookie XIGetSelectedEventsCookie) Reply(conn *x.Conn) (*XIGetSelectedEventsReply, error)
type XIGetSelectedEventsReply ¶
type XIGetSelectedEventsReply struct {
Masks []EventMask
}
type XIGrabDeviceCookie ¶
func XIGrabDevice ¶
func (XIGrabDeviceCookie) Reply ¶
func (cookie XIGrabDeviceCookie) Reply(conn *x.Conn) (*XIGrabDeviceReply, error)
type XIGrabDeviceReply ¶
type XIGrabDeviceReply struct {
Status uint8
}
type XIListPropertiesCookie ¶
func XIListProperties ¶
func XIListProperties(conn *x.Conn, deviceId DeviceId) XIListPropertiesCookie
func (XIListPropertiesCookie) Reply ¶
func (cookie XIListPropertiesCookie) Reply(conn *x.Conn) (*XIListPropertiesReply, error)
type XIListPropertiesReply ¶
type XIListPropertiesReply struct {
Properties []x.Atom
}
type XIPassiveGrabDeviceCookie ¶
func XIPassiveGrabDevice ¶
func (XIPassiveGrabDeviceCookie) Reply ¶
func (cookie XIPassiveGrabDeviceCookie) Reply(conn *x.Conn) (*XIPassiveGrabDeviceReply, error)
type XIPassiveGrabDeviceReply ¶
type XIPassiveGrabDeviceReply struct {
Modifiers []GrabModifierInfo
}
type XIQueryDeviceCookie ¶
func XIQueryDevice ¶
func XIQueryDevice(conn *x.Conn, deviceId DeviceId) XIQueryDeviceCookie
func (XIQueryDeviceCookie) Reply ¶
func (cookie XIQueryDeviceCookie) Reply(conn *x.Conn) (*XIQueryDeviceReply, error)
type XIQueryDeviceReply ¶
type XIQueryDeviceReply struct {
Infos []XIDeviceInfo
}
type XIQueryPointerCookie ¶
func XIQueryPointer ¶
func (XIQueryPointerCookie) Reply ¶
func (cookie XIQueryPointerCookie) Reply(conn *x.Conn) (*XIQueryPointerReply, error)
type XIQueryPointerReply ¶
type XIQueryVersionCookie ¶
func XIQueryVersion ¶
func XIQueryVersion(conn *x.Conn, majorVersion, minorVersion uint16) XIQueryVersionCookie
func (XIQueryVersionCookie) Reply ¶
func (cookie XIQueryVersionCookie) Reply(conn *x.Conn) (*XIQueryVersionReply, error)