Documentation ¶
Index ¶
- Constants
- func Bell(conn *x.Conn, deviceSpec DeviceSpec, bellClass BellClassSpec, bellID IdSpec, ...)
- func BellChecked(conn *x.Conn, deviceSpec DeviceSpec, bellClass BellClassSpec, bellID IdSpec, ...) x.VoidCookie
- func Ext() *x.Extension
- func LatchLockState(conn *x.Conn, deviceSpec DeviceSpec, affectModLocks, modLocks uint8, ...)
- func LatchLockStateChecked(conn *x.Conn, deviceSpec DeviceSpec, affectModLocks, modLocks uint8, ...) x.VoidCookie
- func SelectEvents(conn *x.Conn, deviceSpec DeviceSpec, options ...SelectOption)
- func SelectEventsChecked(conn *x.Conn, deviceSpec DeviceSpec, options ...SelectOption) x.VoidCookie
- func SetCompatMap(conn *x.Conn, deviceSpec DeviceSpec, v *SetCompatMapValue)
- func SetCompatMapChecked(conn *x.Conn, deviceSpec DeviceSpec, v *SetCompatMapValue) x.VoidCookie
- func SetControls(conn *x.Conn, deviceSpec DeviceSpec, ...)
- func SetControlsChecked(conn *x.Conn, deviceSpec DeviceSpec, ...) x.VoidCookie
- func SetDeviceInfo(conn *x.Conn, deviceSpec DeviceSpec, firstBtn uint8, change uint16, ...)
- func SetDeviceInfoChecked(conn *x.Conn, deviceSpec DeviceSpec, firstBtn uint8, change uint16, ...) x.VoidCookie
- func SetIndicatorMap(conn *x.Conn, deviceSpec DeviceSpec, which uint32, maps []IndicatorMap)
- func SetIndicatorMapChecked(conn *x.Conn, deviceSpec DeviceSpec, which uint32, maps []IndicatorMap) x.VoidCookie
- func SetMap(conn *x.Conn, deviceSpec DeviceSpec, flags uint16, m *SetMapValue)
- func SetMapChecked(conn *x.Conn, deviceSpec DeviceSpec, flags uint16, m *SetMapValue) x.VoidCookie
- func SetNamedIndicator(conn *x.Conn, deviceSpec DeviceSpec, ledClass LedClassSpec, ledID IdSpec, ...)
- func SetNamedIndicatorChecked(conn *x.Conn, deviceSpec DeviceSpec, ledClass LedClassSpec, ledID IdSpec, ...) x.VoidCookie
- func SetNames(conn *x.Conn, r *SetNamesRequest)
- func SetNamesChecked(conn *x.Conn, r *SetNamesRequest) x.VoidCookie
- type AccessXNotifyEvent
- type Action
- type ActionMessageEvent
- type Behavior
- type BellClassSpec
- type BellNotifyEvent
- type CompatMapNotifyEvent
- type ComponentNames
- type Controls
- type ControlsNotifyEvent
- type DefaultBehavior
- type DeviceLedInfo
- type DeviceSpec
- type ExtensionDeviceNotifyEvent
- type GetCompatMapCookie
- type GetCompatMapReply
- type GetControlsCookie
- type GetControlsReply
- type GetDeviceInfoCookie
- type GetDeviceInfoReply
- type GetIndicatorMapCookie
- type GetIndicatorMapReply
- type GetIndicatorStateCookie
- type GetIndicatorStateReply
- type GetKbdByNameCookie
- type GetMapCookie
- type GetMapPartOptions
- type GetMapReply
- type GetNamedIndicatorCookie
- type GetNamedIndicatorReply
- type GetNamesCookie
- type GetNamesReply
- type GetStateCookie
- type GetStateReply
- type IdSpec
- type IndicatorMap
- type IndicatorMapNotifyEvent
- type IndicatorStateNotifyEvent
- type KTMapEntry
- type KTSetMapEntry
- type KeyAlias
- type KeyModMap
- type KeySymMap
- type KeyType
- type KeyVModMap
- type LedClassSpec
- type ListComponentsCookie
- type ListComponentsReply
- type LockBehavior
- type MapNotifyEvent
- type ModDef
- type NamesNotifyEvent
- type NewKeyboardNotifyEvent
- type Overlay1Behavior
- type Overlay2Behavior
- type PerClientFlagsCookie
- type PerClientFlagsReply
- type PermamentLockBehavior
- type PermamentOverlay1Behavior
- type PermamentOverlay2Behavior
- type PermamentRadioGroupBehavior
- type RadioGroupBehavior
- type SAActionMessage
- type SADeviceBtn
- type SADeviceValuator
- type SAIsoLock
- type SALatchGroup
- type SALatchMods
- type SALockControls
- type SALockDeviceBtn
- type SALockGroup
- type SALockMods
- type SALockPtrBtn
- type SAMovePtr
- type SANoAction
- type SAPtrBtn
- type SARedirectKey
- type SASetControls
- type SASetGroup
- type SASetMods
- type SASetPtrDflt
- type SASwitchScreen
- type SATerminate
- type SelectOption
- type SetBehavior
- type SetCompatMapValue
- type SetDebuggingFlagsCookie
- type SetDebuggingFlagsReply
- type SetExplicit
- type SetKeyType
- type SetMapValue
- type SetNamesRequest
- type StateNotifyEvent
- type String8
- type SymInterpret
- type UnknownAction
- type UnknownBehavior
- type UseExtensionCookie
- type UseExtensionReply
Constants ¶
const ( ConstMaxLegalKeyCode = 255 ConstPerKeyBitArraySize = 32 ConstKeyNameLength = 4 )
enum Const
const ( EventTypeNewKeyboardNotify = 1 EventTypeMapNotify = 2 EventTypeStateNotify = 4 EventTypeControlsNotify = 8 EventTypeIndicatorStateNotify = 16 EventTypeIndicatorMapNotify = 32 EventTypeNamesNotify = 64 EventTypeCompatMapNotify = 128 EventTypeBellNotify = 256 EventTypeActionMessage = 512 EventTypeAccessXNotify = 1024 EventTypeExtensionDeviceNotify = 2048 )
enum EventType
const ( NKNDetailKeycodes = 1 NKNDetailGeometry = 2 NKNDetailDeviceId = 4 )
enum NKNDetail
const ( AXNDetailSkPress = 1 AXNDetailSkAccept = 2 AXNDetailSkReject = 4 AXNDetailSkRelease = 8 AXNDetailBkAccept = 16 AXNDetailBkReject = 32 AXNDetailAxkWarning = 64 )
enum AXNDetail
const ( MapPartKeyTypes = 1 MapPartKeySyms = 2 MapPartModifierMap = 4 MapPartExplicitComponents = 8 MapPartKeyActions = 16 MapPartKeyBehaviors = 32 MapPartVirtualMods = 64 MapPartVirtualModMap = 128 )
enum MapPart
const ( SetMapFlagsResizeTypes = 1 SetMapFlagsRecomputeActions = 2 )
enum SetMapFlags
const ( StatePartModifierState = 1 StatePartModifierBase = 2 StatePartModifierLatch = 4 StatePartModifierLock = 8 StatePartGroupState = 16 StatePartGroupBase = 32 StatePartGroupLatch = 64 StatePartGroupLock = 128 StatePartCompatState = 256 StatePartGrabMods = 512 StatePartCompatGrabMods = 1024 StatePartLookupMods = 2048 StatePartCompatLookupMods = 4096 StatePartPointerButtons = 8192 )
enum StatePart
const ( BoolCtrlRepeatKeys = 1 BoolCtrlSlowKeys = 2 BoolCtrlBounceKeys = 4 BoolCtrlStickyKeys = 8 BoolCtrlMouseKeys = 16 BoolCtrlMouseKeysAccel = 32 BoolCtrlAccessXKeys = 64 BoolCtrlAccessXTimeoutMask = 128 BoolCtrlAccessXFeedbackMask = 256 BoolCtrlAudibleBellMask = 512 BoolCtrlOverlay1Mask = 1024 BoolCtrlOverlay2Mask = 2048 BoolCtrlIgnoreGroupLockMask = 4096 )
enum BoolCtrl
const ( ControlGroupsWrap = 134217728 ControlInternalMods = 268435456 ControlIgnoreLockMods = 536870912 ControlPerKeyRepeat = 1073741824 ControlControlsEnabled = 2147483648 )
enum Control
const ( AXOptionSkPressFb = 1 AXOptionSkAcceptFb = 2 AXOptionFeatureFb = 4 AXOptionSlowWarnFb = 8 AXOptionIndicatorFb = 16 AXOptionStickyKeysFb = 32 AXOptionTwoKeys = 64 AXOptionLatchToLock = 128 AXOptionSkReleaseFb = 256 AXOptionSkRejectFb = 512 AXOptionBkRejectFb = 1024 AXOptionDumbBell = 2048 )
enum AXOption
const ( LedClassResultKbdFeedbackClass = 0 LedClassResultLedFeedbackClass = 4 )
enum LedClassResult
const ( LedClassKbdFeedbackClass = 0 LedClassLedFeedbackClass = 4 LedClassDfltXiClass = 768 LedClassAllXiClasses = 1280 )
enum LedClass
const ( BellClassResultKbdFeedbackClass = 0 BellClassResultBellFeedbackClass = 5 )
enum BellClassResult
const ( BellClassKbdFeedbackClass = 0 BellClassBellFeedbackClass = 5 BellClassDfltXiClass = 768 )
enum BellClass
const ( IDUseCoreKbd = 256 IDUseCorePtr = 512 IDDfltXiClass = 768 IDDfltXiId = 1024 IDAllXiClass = 1280 IDAllXiId = 1536 IDXiNone = 65280 )
enum ID
const ( Group1 = 0 Group2 = 1 Group3 = 2 Group4 = 3 )
enum Group
const ( GroupsAny = 254 GroupsAll = 255 )
enum Groups
const ( SetOfGroupGroup1 = 1 SetOfGroupGroup2 = 2 SetOfGroupGroup3 = 4 SetOfGroupGroup4 = 8 )
enum SetOfGroup
const ( GroupsWrapWrapIntoRange = 0 GroupsWrapClampIntoRange = 64 GroupsWrapRedirectIntoRange = 128 )
enum GroupsWrap
const ( VModsHigh15 = 128 VModsHigh14 = 64 VModsHigh13 = 32 VModsHigh12 = 16 VModsHigh11 = 8 VModsHigh10 = 4 VModsHigh9 = 2 VModsHigh8 = 1 )
enum VModsHigh
const ( VModsLow7 = 128 VModsLow6 = 64 VModsLow5 = 32 VModsLow4 = 16 VModsLow3 = 8 VModsLow2 = 4 VModsLow1 = 2 VModsLow0 = 1 )
enum VModsLow
const ( VMod15 = 32768 VMod14 = 16384 VMod13 = 8192 VMod12 = 4096 VMod11 = 2048 VMod10 = 1024 VMod9 = 512 VMod8 = 256 VMod7 = 128 VMod6 = 64 VMod5 = 32 VMod4 = 16 VMod3 = 8 VMod2 = 4 VMod1 = 2 VMod0 = 1 )
enum VMod
const ( ExplicitVModMap = 128 ExplicitBehavior = 64 ExplicitAutoRepeat = 32 ExplicitInterpret = 16 ExplicitKeyType4 = 8 ExplicitKeyType3 = 4 ExplicitKeyType2 = 2 ExplicitKeyType1 = 1 )
enum Explicit
const ( SymInterpretMatchNoneOf = 0 SymInterpretMatchAnyOfOrNone = 1 SymInterpretMatchAnyOf = 2 SymInterpretMatchAllOf = 3 SymInterpretMatchExactly = 4 )
enum SymInterpretMatch
const ( SymInterpMatchLevelOneOnly = 128 SymInterpMatchOpMask = 127 )
enum SymInterpMatch
const ( IMFlagNoExplicit = 128 IMFlagNoAutomatic = 64 IMFlagLedDrivesKb = 32 )
enum IMFlag
const ( IMModsWhichUseCompat = 16 IMModsWhichUseEffective = 8 IMModsWhichUseLocked = 4 IMModsWhichUseLatched = 2 IMModsWhichUseBase = 1 )
enum IMModsWhich
const ( IMGroupsWhichUseCompat = 16 IMGroupsWhichUseEffective = 8 IMGroupsWhichUseLocked = 4 IMGroupsWhichUseLatched = 2 IMGroupsWhichUseBase = 1 )
enum IMGroupsWhich
const ( CMDetailSymInterp = 1 CMDetailGroupCompat = 2 )
enum CMDetail
const ( NameDetailKeycodes = 1 NameDetailGeometry = 2 NameDetailSymbols = 4 NameDetailPhysSymbols = 8 NameDetailTypes = 16 NameDetailCompat = 32 NameDetailKeyTypeNames = 64 NameDetailKtLevelNames = 128 NameDetailIndicatorNames = 256 NameDetailKeyNames = 512 NameDetailKeyAliases = 1024 NameDetailVirtualModNames = 2048 NameDetailGroupNames = 4096 NameDetailRgNames = 8192 )
enum NameDetail
const ( GBNDetailTypes = 1 GBNDetailCompatMap = 2 GBNDetailClientSymbols = 4 GBNDetailServerSymbols = 8 GBNDetailIndicatorMaps = 16 GBNDetailKeyNames = 32 GBNDetailGeometry = 64 GBNDetailOtherNames = 128 )
enum GBNDetail
const ( XIFeatureKeyboards = 1 XIFeatureButtonActions = 2 XIFeatureIndicatorNames = 4 XIFeatureIndicatorMaps = 8 XIFeatureIndicatorState = 16 )
enum XIFeature
const ( PerClientFlagDetectableAutoRepeat = 1 PerClientFlagGrabsUseXkbState = 2 PerClientFlagAutoResetControls = 4 PerClientFlagLookupStateWhenGrabbed = 8 PerClientFlagSendEventUsesXkbState = 16 )
enum PerClientFlag
const ( BehaviorTypeDefault = 0 BehaviorTypeLock = 1 BehaviorTypeRadioGroup = 2 BehaviorTypeOverlay1 = 3 BehaviorTypeOverlay2 = 4 BehaviorTypePermamentLock = 129 BehaviorTypePermamentRadioGroup = 130 BehaviorTypePermamentOverlay1 = 131 BehaviorTypePermamentOverlay2 = 132 )
enum BehaviorType
const ( DoodadTypeOutline = 1 DoodadTypeSolid = 2 DoodadTypeText = 3 DoodadTypeIndicator = 4 DoodadTypeLogo = 5 )
enum DoodadType
const ( ErrorBadDevice = 255 ErrorBadClass = 254 ErrorBadId = 253 )
enum Error
const ( SAClearLocks = 1 SALatchToLock = 2 SAUseModMapMods = 4 SAGroupAbsolute = 4 )
enum SA
const ( SATypeNoAction = 0 SATypeSetMods = 1 SATypeLatchMods = 2 SATypeLockMods = 3 SATypeSetGroup = 4 SATypeLatchGroup = 5 SATypeLockGroup = 6 SATypeMovePtr = 7 SATypePtrBtn = 8 SATypeLockPtrBtn = 9 SATypeSetPtrDflt = 10 SATypeIsoLock = 11 SATypeTerminate = 12 SATypeSwitchScreen = 13 SATypeSetControls = 14 SATypeLockControls = 15 SATypeActionMessage = 16 SATypeRedirectKey = 17 SATypeDeviceBtn = 18 SATypeLockDeviceBtn = 19 SATypeDeviceValuator = 20 )
enum SAType
const ( SAMovePtrFlagNoAcceleration = 1 SAMovePtrFlagMoveAbsoluteX = 2 SAMovePtrFlagMoveAbsoluteY = 4 )
enum SAMovePtrFlag
const ( SASetPtrDfltFlagDfltBtnAbsolute = 4 SASetPtrDfltFlagAffectDfltButton = 1 )
enum SASetPtrDfltFlag
const ( SAIsoLockFlagNoLock = 1 SAIsoLockFlagNoUnlock = 2 SAIsoLockFlagUseModMapMods = 4 SAIsoLockFlagGroupAbsolute = 4 SAIsoLockFlagIsoDfltIsGroup = 8 )
enum SAIsoLockFlag
const ( SAIsoLockNoAffectCtrls = 8 SAIsoLockNoAffectPtr = 16 SAIsoLockNoAffectGroup = 32 SAIsoLockNoAffectMods = 64 )
enum SAIsoLockNoAffect
const ( SwitchScreenFlagApplication = 1 SwitchScreenFlagAbsolute = 4 )
enum SwitchScreenFlag
const ( BoolCtrlsHighAccessXFeedback = 1 BoolCtrlsHighAudibleBell = 2 BoolCtrlsHighOverlay1 = 4 BoolCtrlsHighOverlay2 = 8 BoolCtrlsHighIgnoreGroupLock = 16 )
enum BoolCtrlsHigh
const ( BoolCtrlsLowRepeatKeys = 1 BoolCtrlsLowSlowKeys = 2 BoolCtrlsLowBounceKeys = 4 BoolCtrlsLowStickyKeys = 8 BoolCtrlsLowMouseKeys = 16 BoolCtrlsLowMouseKeysAccel = 32 BoolCtrlsLowAccessXKeys = 64 BoolCtrlsLowAccessXTimeout = 128 )
enum BoolCtrlsLow
const ( ActionMessageFlagOnPress = 1 ActionMessageFlagOnRelease = 2 ActionMessageFlagGenKeyEvent = 4 )
enum ActionMessageFlag
const ( LockDeviceFlagsNoLock = 1 LockDeviceFlagsNoUnlock = 2 )
enum LockDeviceFlags
const ( SAValWhatIgnoreVal = 0 SAValWhatSetValMin = 1 SAValWhatSetValCenter = 2 SAValWhatSetValMax = 3 SAValWhatSetValRelative = 4 SAValWhatSetValAbsolute = 5 )
enum SAValWhat
const AccessXNotifyEventCode = 10
const ActionMessageEventCode = 9
const BellNotifyEventCode = 8
const BellOpcode = 3
const CompatMapNotifyEventCode = 7
const ControlsNotifyEventCode = 3
const ExtensionDeviceNotifyEventCode = 11
const GetCompatMapOpcode = 10
const GetControlsOpcode = 6
const GetDeviceInfoOpcode = 24
const GetIndicatorMapOpcode = 13
const GetIndicatorStateOpcode = 12
const GetKbdByNameOpcode = 23
const GetMapOpcode = 8
const GetNamedIndicatorOpcode = 15
const GetNamesOpcode = 17
const GetStateOpcode = 4
const IndicatorMapNotifyEventCode = 5
const IndicatorStateNotifyEventCode = 4
const KeyboardErrorCode = 0
const LatchLockStateOpcode = 5
const ListComponentsOpcode = 22
const MajorVersion = 1
_ns.ext_name: xkb
const MapNotifyEventCode = 1
const MinorVersion = 0
const NamesNotifyEventCode = 6
const NewKeyboardNotifyEventCode = 0
const PerClientFlagsOpcode = 21
const SelectEventsOpcode = 1
const SetCompatMapOpcode = 11
const SetControlsOpcode = 7
const SetDebuggingFlagsOpcode = 101
const SetDeviceInfoOpcode = 25
const SetIndicatorMapOpcode = 14
const SetMapOpcode = 9
const SetNamedIndicatorOpcode = 16
const SetNamesOpcode = 18
const (
SetOfGroupsAny = 128
)
enum SetOfGroups
const StateNotifyEventCode = 2
const UseExtensionOpcode = 0
Variables ¶
This section is empty.
Functions ¶
func BellChecked ¶
func BellChecked(conn *x.Conn, deviceSpec DeviceSpec, bellClass BellClassSpec, bellID IdSpec, percent int8, forceSound, eventOnly bool, pitch, duration int16, name x.Atom, window x.Window) x.VoidCookie
func LatchLockState ¶
func LatchLockStateChecked ¶
func LatchLockStateChecked(conn *x.Conn, deviceSpec DeviceSpec, affectModLocks, modLocks uint8, lockGroup bool, groupLock, affectModLatches, modLatches uint8, latchGroup bool, groupLatch uint16) x.VoidCookie
func SelectEvents ¶
func SelectEvents(conn *x.Conn, deviceSpec DeviceSpec, options ...SelectOption)
func SelectEventsChecked ¶
func SelectEventsChecked(conn *x.Conn, deviceSpec DeviceSpec, options ...SelectOption) x.VoidCookie
func SetCompatMap ¶
func SetCompatMap(conn *x.Conn, deviceSpec DeviceSpec, v *SetCompatMapValue)
func SetCompatMapChecked ¶
func SetCompatMapChecked(conn *x.Conn, deviceSpec DeviceSpec, v *SetCompatMapValue) x.VoidCookie
func SetControls ¶
func SetControlsChecked ¶
func SetControlsChecked(conn *x.Conn, deviceSpec DeviceSpec, affectInternalRealMods, affectIgnoreLockRealMods uint8, affectInternalVirtualMods, affectIgnoreLockVirtualMods uint16, affectEnabledControls, changeControls uint32, c *Controls) x.VoidCookie
func SetDeviceInfo ¶
func SetDeviceInfo(conn *x.Conn, deviceSpec DeviceSpec, firstBtn uint8, change uint16, btnActions []Action, leds []DeviceLedInfo)
func SetDeviceInfoChecked ¶
func SetDeviceInfoChecked(conn *x.Conn, deviceSpec DeviceSpec, firstBtn uint8, change uint16, btnActions []Action, leds []DeviceLedInfo) x.VoidCookie
func SetIndicatorMap ¶
func SetIndicatorMap(conn *x.Conn, deviceSpec DeviceSpec, which uint32, maps []IndicatorMap)
func SetIndicatorMapChecked ¶
func SetIndicatorMapChecked(conn *x.Conn, deviceSpec DeviceSpec, which uint32, maps []IndicatorMap) x.VoidCookie
func SetMap ¶
func SetMap(conn *x.Conn, deviceSpec DeviceSpec, flags uint16, m *SetMapValue)
func SetMapChecked ¶
func SetMapChecked(conn *x.Conn, deviceSpec DeviceSpec, flags uint16, m *SetMapValue) x.VoidCookie
func SetNamedIndicator ¶
func SetNamedIndicator(conn *x.Conn, deviceSpec DeviceSpec, ledClass LedClassSpec, ledID IdSpec, indicator x.Atom, setState, on, setMap, createMap bool, map0 *IndicatorMap)
func SetNamedIndicatorChecked ¶
func SetNamedIndicatorChecked(conn *x.Conn, deviceSpec DeviceSpec, ledClass LedClassSpec, ledID IdSpec, indicator x.Atom, setState, on, setMap, createMap bool, map0 *IndicatorMap) x.VoidCookie
func SetNames ¶
func SetNames(conn *x.Conn, r *SetNamesRequest)
func SetNamesChecked ¶
func SetNamesChecked(conn *x.Conn, r *SetNamesRequest) x.VoidCookie
Types ¶
type AccessXNotifyEvent ¶
type AccessXNotifyEvent struct { Keycode x.Keycode Detail uint16 SlowKeysDelay uint16 DebounceDelay uint16 // contains filtered or unexported fields }
func NewAccessXNotifyEvent ¶
func NewAccessXNotifyEvent(data []byte) (*AccessXNotifyEvent, error)
type Action ¶
type Action interface { Type() uint8 // TODO: rename ActionType // contains filtered or unexported methods }
size: 2 * 4b
type ActionMessageEvent ¶
type ActionMessageEvent struct { Keycode x.Keycode Press bool KeyEventFollows bool Mods uint8 Group uint8 Message string // contains filtered or unexported fields }
func NewActionMessageEvent ¶
func NewActionMessageEvent(data []byte) (*ActionMessageEvent, error)
type Behavior ¶
type Behavior interface { Type() uint8 // contains filtered or unexported methods }
size: 2b
type BellNotifyEvent ¶
type BellNotifyEvent struct { BellClass uint8 BellID uint8 Percent uint8 Pitch uint16 Duration uint16 Name x.Atom Window x.Window EventOnly bool // contains filtered or unexported fields }
func NewBellNotifyEvent ¶
func NewBellNotifyEvent(data []byte) (*BellNotifyEvent, error)
type CompatMapNotifyEvent ¶
type CompatMapNotifyEvent struct { ChangedGroup uint8 FirstSI uint16 NSI uint16 NTotalSI uint16 // contains filtered or unexported fields }
func NewCompatMapNotifyEvent ¶
func NewCompatMapNotifyEvent(data []byte) (*CompatMapNotifyEvent, error)
type ComponentNames ¶
type Controls ¶
type Controls struct { MouseKeysDefaultBtn uint8 NumGroups uint8 GroupsWrap uint8 Internal ModDef IgnoreLock ModDef EnabledControls uint32 RepeatDelay uint16 RepeatInterval uint16 SlowKeysDelay uint16 DebounceDelay uint16 MouseKeysDelay uint16 MouseKeysInterval uint16 MouseKeysTimeToMax uint16 MouseKeysMaxSpeed uint16 MouseKeysCurve int16 AccessXOption uint16 AccessXTimeout uint16 AccessXTimeoutOptionsMask uint16 AccessXTimeoutOptionsValues uint16 AccessXTimeoutMask uint32 AccessXTimeoutValues uint32 PerKeyRepeat []byte // len 32 }
type ControlsNotifyEvent ¶
type ControlsNotifyEvent struct { NumGroups uint8 ChangedControls uint32 EnabledControls uint32 EnabledControlChanges uint32 Keycode x.Keycode EventType uint8 RequestMajor uint8 RequestMinor uint8 // contains filtered or unexported fields }
func NewControlsNotifyEvent ¶
func NewControlsNotifyEvent(data []byte) (*ControlsNotifyEvent, error)
type DefaultBehavior ¶
type DefaultBehavior struct { }
func (DefaultBehavior) Type ¶
func (DefaultBehavior) Type() uint8
type DeviceLedInfo ¶
type DeviceLedInfo struct { LedClass LedClassSpec LedID IdSpec NamesPresent uint32 MapsPresent uint32 PhysIndicators uint32 State uint32 Names []x.Atom Maps []IndicatorMap }
type ExtensionDeviceNotifyEvent ¶
type ExtensionDeviceNotifyEvent struct { Reason uint16 LedClass uint16 LedID uint16 LedsDefined uint32 LedState uint32 FirstButton uint8 NButtons uint8 Supported uint16 Unsupported uint16 // contains filtered or unexported fields }
func NewExtensionDeviceNotifyEvent ¶
func NewExtensionDeviceNotifyEvent(data []byte) (*ExtensionDeviceNotifyEvent, error)
type GetCompatMapCookie ¶
func GetCompatMap ¶
func GetCompatMap(conn *x.Conn, deviceSpec DeviceSpec, groups uint8, getAllSI bool, firstSI, NSI uint16) GetCompatMapCookie
func (GetCompatMapCookie) Reply ¶
func (cookie GetCompatMapCookie) Reply(conn *x.Conn) (*GetCompatMapReply, error)
type GetCompatMapReply ¶
type GetControlsCookie ¶
func GetControls ¶
func GetControls(conn *x.Conn, deviceSpec DeviceSpec) GetControlsCookie
func (GetControlsCookie) Reply ¶
func (cookie GetControlsCookie) Reply(conn *x.Conn) (*GetControlsReply, error)
type GetControlsReply ¶
type GetDeviceInfoCookie ¶
func GetDeviceInfo ¶
func GetDeviceInfo(conn *x.Conn, deviceSpec DeviceSpec, wanted uint16, allButtons bool, FirstButton, nButtons uint8, ledClass LedClassSpec, ledID IdSpec) GetDeviceInfoCookie
func (GetDeviceInfoCookie) Reply ¶
func (cookie GetDeviceInfoCookie) Reply(conn *x.Conn) (*GetDeviceInfoReply, error)
type GetDeviceInfoReply ¶
type GetDeviceInfoReply struct { DeviceID uint8 Present uint16 Supported uint16 Unsupported uint16 NDeviceLedFBs uint16 FirstBtnWanted uint8 NBtnsWanted uint8 FirstBtnRtrn uint8 NBtnsRtrn uint8 TotalBtns uint8 HasOwnState bool DfltKbdFB uint16 DfltLedFB uint16 DevType x.Atom NameLen uint16 Name string BtnActions []Action Leds []DeviceLedInfo }
type GetIndicatorMapCookie ¶
func GetIndicatorMap ¶
func GetIndicatorMap(conn *x.Conn, deviceSpec DeviceSpec, which uint32) GetIndicatorMapCookie
func (GetIndicatorMapCookie) Reply ¶
func (cookie GetIndicatorMapCookie) Reply(conn *x.Conn) (*GetIndicatorMapReply, error)
type GetIndicatorMapReply ¶
type GetIndicatorMapReply struct { DeviceID uint8 Which uint32 RealIndicators uint32 NIndicators uint8 Maps []IndicatorMap }
type GetIndicatorStateCookie ¶
func GetIndicatorState ¶
func GetIndicatorState(conn *x.Conn, deviceSpec DeviceSpec) GetIndicatorStateCookie
func (GetIndicatorStateCookie) Reply ¶
func (cookie GetIndicatorStateCookie) Reply(conn *x.Conn) (*GetIndicatorStateReply, error)
type GetIndicatorStateReply ¶
type GetKbdByNameCookie ¶
type GetMapCookie ¶
func GetMap ¶
func GetMap(conn *x.Conn, deviceSpec DeviceSpec, full uint16, opt *GetMapPartOptions) GetMapCookie
func (GetMapCookie) Reply ¶
func (cookie GetMapCookie) Reply(conn *x.Conn) (*GetMapReply, error)
type GetMapPartOptions ¶
type GetMapPartOptions struct { Partial uint16 FirstType uint8 NTypes uint8 FirstKeySym x.Keycode NKeySyms uint8 FirstKeyAction x.Keycode NKeyActions uint8 FirstKeyBehavior x.Keycode NKeyBehavior uint8 VirtualMods uint16 FirstKeyExplicit x.Keycode NKeyExplicit uint8 FirstModMapKey x.Keycode NModMapKeys uint8 FirstVModMapKey x.Keycode NVModMapKeys uint8 }
type GetMapReply ¶
type GetMapReply struct { DeviceID uint8 MinKeyCode x.Keycode MaxKeyCode x.Keycode Present uint16 FirstType uint8 NTypes uint8 TotalTypes uint8 FirstKeySym x.Keycode TotalSyms uint16 NKeySyms uint8 FirstKeyAction x.Keycode TotalActions uint16 NKeyActions uint8 FirstKeyBehavior x.Keycode NKeyBehaviors uint8 TotalKeyBehaviors uint8 FirstKeyExplicit x.Keycode NKeyExplicit uint8 TotalKeyExplicit uint8 FirstModMapKey x.Keycode NModMapKeys uint8 TotalModMapKeys uint8 FirstVModMapKey x.Keycode NVModMapKeys uint8 TotalVModMapKeys uint8 VirtualMods uint16 Types []KeyType Syms []KeySymMap ActionsCount []uint8 Actions []Action Behaviors []SetBehavior VMods []uint8 Explicit []SetExplicit ModMap []KeyModMap VModMap []KeyVModMap }
type GetNamedIndicatorCookie ¶
func GetNamedIndicator ¶
func GetNamedIndicator(conn *x.Conn, deviceSpec DeviceSpec, ledClass LedClassSpec, ledID IdSpec, indicator x.Atom) GetNamedIndicatorCookie
func (GetNamedIndicatorCookie) Reply ¶
func (cookie GetNamedIndicatorCookie) Reply(conn *x.Conn) (*GetNamedIndicatorReply, error)
type GetNamedIndicatorReply ¶
type GetNamesCookie ¶
func GetNames ¶
func GetNames(conn *x.Conn, deviceSpec DeviceSpec, which uint32) GetNamesCookie
func (GetNamesCookie) Reply ¶
func (cookie GetNamesCookie) Reply(conn *x.Conn) (*GetNamesReply, error)
type GetNamesReply ¶
type GetNamesReply struct { DeviceID uint8 Which uint32 MinKeyCode x.Keycode MaxKeyCode x.Keycode NTypes uint8 Groups uint8 VirtualMods uint16 FirstKey x.Keycode NKeys uint8 Indicators uint32 NRadioGroups uint8 NKeyAliases uint8 NKTLevels uint16 KeycodesName x.Atom GeometryName x.Atom SymbolsName x.Atom PhysSymbolsName x.Atom TypesName x.Atom CompatName x.Atom TypeNames []x.Atom NLevelsPerType []uint8 KTLevelNames []x.Atom IndicatorNames []x.Atom VirtualModNames []x.Atom GroupNames []x.Atom KeyNames []string KeyAliases []KeyAlias RadioGroupNames []x.Atom }
type GetStateCookie ¶
func GetState ¶
func GetState(conn *x.Conn, deviceSpec DeviceSpec) GetStateCookie
func (GetStateCookie) Reply ¶
func (cookie GetStateCookie) Reply(conn *x.Conn) (*GetStateReply, error)
type GetStateReply ¶
type IndicatorMap ¶
type IndicatorMap struct { Flags uint8 WhichGroups uint8 Groups uint8 WhichMods uint8 Mods uint8 RealMods uint8 VMods uint16 Ctrls uint32 }
size: 3 * 4b
type IndicatorMapNotifyEvent ¶
type IndicatorMapNotifyEvent struct { State uint32 MapChanged uint32 // contains filtered or unexported fields }
func NewIndicatorMapNotifyEvent ¶
func NewIndicatorMapNotifyEvent(data []byte) (*IndicatorMapNotifyEvent, error)
type IndicatorStateNotifyEvent ¶
type IndicatorStateNotifyEvent struct { State uint32 StateChanged uint32 // contains filtered or unexported fields }
func NewIndicatorStateNotifyEvent ¶
func NewIndicatorStateNotifyEvent(data []byte) (*IndicatorStateNotifyEvent, error)
type KTMapEntry ¶
key type map entry, size: 2 * 4b
type KTSetMapEntry ¶
size: 1 * 4b
type ListComponentsCookie ¶
func ListComponents ¶
func ListComponents(conn *x.Conn, deviceSpec DeviceSpec, maxNames uint16, cn *ComponentNames) ListComponentsCookie
func (ListComponentsCookie) Reply ¶
func (cookie ListComponentsCookie) Reply(conn *x.Conn) (*ListComponentsReply, error)
type ListComponentsReply ¶
type LockBehavior ¶
type LockBehavior struct { }
func (LockBehavior) Type ¶
func (LockBehavior) Type() uint8
type MapNotifyEvent ¶
type MapNotifyEvent struct { PtrBtnActions uint8 Changed uint16 MinKeyCode x.Keycode MaxKeyCode x.Keycode FirstType uint8 NTypes uint8 FirstKeySym x.Keycode NKeySyms uint8 FirstKeyAct x.Keycode NKeyActs uint8 FirstKeyBehavior x.Keycode NKeyBehavior uint8 FirstKeyExplicit x.Keycode NKeyExplicit uint8 FirstModMapKey x.Keycode NModMapKeys uint8 FirstVModMapKey x.Keycode NVModMapKeys uint8 VirtualMods uint16 // contains filtered or unexported fields }
func NewMapNotifyEvent ¶
func NewMapNotifyEvent(data []byte) (*MapNotifyEvent, error)
type ModDef ¶
type ModDef struct { // RealMods | VirtualMods mapped to real modifiers Mask uint8 // real modifier bits RealMods uint8 // virtual modifier bits VirtualMods uint16 }
size: 1 * 4b
type NamesNotifyEvent ¶
type NamesNotifyEvent struct { Changed uint16 FirstType uint8 NTypes uint8 FirstLevelName uint8 NLevelNames uint8 NRadioGroups uint8 NKeyAliases uint8 ChangedGroupNames uint8 ChangedVirtualMods uint16 FirstKey x.Keycode NKeys uint8 ChangedIndicators uint32 // contains filtered or unexported fields }
func NewNamesNotifyEvent ¶
func NewNamesNotifyEvent(data []byte) (*NamesNotifyEvent, error)
type NewKeyboardNotifyEvent ¶
type NewKeyboardNotifyEvent struct { OldDeviceID uint8 MinKeyCode x.Keycode MaxKeyCode x.Keycode OldMinKeyCode x.Keycode OldMaxKeyCode x.Keycode RequestMajor uint8 RequestMinor uint8 Changed uint16 // contains filtered or unexported fields }
func NewNewKeyboardNotifyEvent ¶
func NewNewKeyboardNotifyEvent(data []byte) (*NewKeyboardNotifyEvent, error)
type Overlay1Behavior ¶
type Overlay1Behavior struct {
Key x.Keycode
}
func (Overlay1Behavior) Type ¶
func (Overlay1Behavior) Type() uint8
type Overlay2Behavior ¶
type Overlay2Behavior Overlay1Behavior
func (Overlay2Behavior) Type ¶
func (Overlay2Behavior) Type() uint8
type PerClientFlagsCookie ¶
func PerClientFlags ¶
func PerClientFlags(conn *x.Conn, deviceSpec DeviceSpec, change, value, ctrlsToChange, autoCtrls, autoCtrlsValues uint32) PerClientFlagsCookie
func (PerClientFlagsCookie) Reply ¶
func (cookie PerClientFlagsCookie) Reply(conn *x.Conn) (*PerClientFlagsReply, error)
type PerClientFlagsReply ¶
type PermamentLockBehavior ¶
type PermamentLockBehavior LockBehavior
func (PermamentLockBehavior) Type ¶
func (PermamentLockBehavior) Type() uint8
type PermamentOverlay1Behavior ¶
type PermamentOverlay1Behavior Overlay1Behavior
func (PermamentOverlay1Behavior) Type ¶
func (PermamentOverlay1Behavior) Type() uint8
type PermamentOverlay2Behavior ¶
type PermamentOverlay2Behavior Overlay1Behavior
func (PermamentOverlay2Behavior) Type ¶
func (PermamentOverlay2Behavior) Type() uint8
type PermamentRadioGroupBehavior ¶
type PermamentRadioGroupBehavior RadioGroupBehavior
func (PermamentRadioGroupBehavior) Type ¶
func (PermamentRadioGroupBehavior) Type() uint8
type RadioGroupBehavior ¶
type RadioGroupBehavior struct {
Group uint8
}
func (RadioGroupBehavior) Type ¶
func (RadioGroupBehavior) Type() uint8
type SAActionMessage ¶
Action ActionMessage
func (SAActionMessage) Type ¶
func (SAActionMessage) Type() uint8
type SADeviceValuator ¶
type SADeviceValuator struct { Device uint8 Val1What uint8 Val1Index uint8 Val1Value uint8 Val2What uint8 Val2Index uint8 Val2Value uint8 }
Action DeviceValuator
func (SADeviceValuator) Type ¶
func (SADeviceValuator) Type() uint8
type SAIsoLock ¶
type SAIsoLock struct { Flags uint8 Mask uint8 RealMods uint8 Group int8 Affect uint8 VMods uint16 }
Action Iso Lock
type SALatchGroup ¶
type SALatchGroup SASetGroup
Action LatchGroup
func (SALatchGroup) Type ¶
func (SALatchGroup) Type() uint8
type SALatchMods ¶
type SALatchMods SASetMods
Action LatchMods
func (SALatchMods) Type ¶
func (SALatchMods) Type() uint8
type SALockControls ¶
type SALockControls SASetControls
Action LockControls
func (SALockControls) Type ¶
func (SALockControls) Type() uint8
type SALockDeviceBtn ¶
Action LockDeviceBtn
func (SALockDeviceBtn) Type ¶
func (SALockDeviceBtn) Type() uint8
type SALockGroup ¶
type SALockGroup SASetGroup
Action LockGroup
func (SALockGroup) Type ¶
func (SALockGroup) Type() uint8
type SALockMods ¶
type SALockMods SASetMods
Action LockMods
func (SALockMods) Type ¶
func (SALockMods) Type() uint8
type SANoAction ¶
type SANoAction struct { }
Action NoAction
func (SANoAction) Type ¶
func (SANoAction) Type() uint8
type SARedirectKey ¶
type SARedirectKey struct { NewKey x.Keycode Mask uint8 RealModifiers uint8 VModsMask uint16 VMods uint16 }
Action RedirectKey
func (SARedirectKey) Type ¶
func (SARedirectKey) Type() uint8
type SASetControls ¶
type SASetControls struct {
BoolCtrls uint16
}
Action SetControls
func (SASetControls) Type ¶
func (SASetControls) Type() uint8
type SASwitchScreen ¶
Action Switch Screen
func (SASwitchScreen) Type ¶
func (SASwitchScreen) Type() uint8
type SATerminate ¶
type SATerminate struct { }
Action Terminate
func (SATerminate) Type ¶
func (SATerminate) Type() uint8
type SelectOption ¶
type SelectOption interface {
// contains filtered or unexported methods
}
func SelectAll ¶
func SelectAll(eventType uint16) SelectOption
func SelectClear ¶
func SelectClear(eventType uint16) SelectOption
func SelectDetail ¶
func SelectDetail(eventType uint16, detail map[uint]bool) SelectOption
type SetCompatMapValue ¶
type SetDebuggingFlagsCookie ¶
func SetDebuggingFlags ¶
func SetDebuggingFlags(conn *x.Conn, affectFlags, flags, affectCtrls, ctrls uint32, message string) SetDebuggingFlagsCookie
func (SetDebuggingFlagsCookie) Reply ¶
func (cookie SetDebuggingFlagsCookie) Reply(conn *x.Conn) (*SetDebuggingFlagsReply, error)
type SetDebuggingFlagsReply ¶
type SetKeyType ¶
type SetKeyType struct { Mask uint8 RealMods uint8 VirtualMods uint16 NumLevels uint8 NMapEntries uint8 Preserve bool Entries []KTSetMapEntry PreserveEntries []KTSetMapEntry }
type SetMapValue ¶
type SetMapValue struct { MinKeyCode x.Keycode MaxKeyCode x.Keycode FirstType uint8 NTypes uint8 // Types TotalTypes uint8 FirstKeySym x.Keycode TotalSyms uint16 NKeySyms uint8 // Syms FirstKeyAction x.Keycode TotalActions uint16 // Actions NKeyActions uint8 // ActionsCount FirstKeyBehavior x.Keycode NKeyBehaviors uint8 TotalKeyBehaviors uint8 // Behaviors FirstKeyExplicit x.Keycode NKeyExplicit uint8 TotalKeyExplicit uint8 // Explicit FirstModMapKey x.Keycode NModMapKeys uint8 TotalModMapKeys uint8 // modMap FirstVModMapKey x.Keycode NVModMapKeys uint8 TotalVModMapKeys uint8 // vModMap VirtualMods uint16 // VMods Types []SetKeyType Syms []KeySymMap ActionsCount []uint8 Actions []Action Behaviors []SetBehavior VMods []uint8 Explicit []SetExplicit ModMap []KeyModMap VModMap []KeyVModMap }
type SetNamesRequest ¶
type SetNamesRequest struct { DeviceSpec DeviceSpec VirtualMods uint16 Which uint32 FirstType uint8 NTypes uint8 FirstKTLevel uint8 NKTLevels uint8 Indicators uint32 Groups uint8 NRadioGroups uint8 FirstKey x.Keycode NKeys uint8 NKeyAliases uint8 TotalKTLevelNames uint16 KeycodesName x.Atom GeometryName x.Atom SymbolsName x.Atom PhysSymbolsName x.Atom TypesName x.Atom CompatName x.Atom TypeNames []x.Atom NLevelsPerType []uint8 KTLevelNames []x.Atom IndicatorNames []x.Atom VirtualModNames []x.Atom GroupNames []x.Atom KeyNames []string KeyAliases []KeyAlias RadioGroupNames []x.Atom }
type StateNotifyEvent ¶
type StateNotifyEvent struct { Mods uint8 BaseMods uint8 LatchedMods uint8 LockedMods uint8 Group uint8 BaseGroup int16 LatchedGroup int16 LockedGroup uint8 CompatState uint8 GrabMods uint8 CompatGrabMods uint8 LookupMods uint8 CompatLookupMods uint8 PtrBtnState uint16 Changed uint16 Keycode x.Keycode EventType uint8 RequestMajor uint8 RequestMinor uint8 // contains filtered or unexported fields }
func NewStateNotifyEvent ¶
func NewStateNotifyEvent(data []byte) (*StateNotifyEvent, error)
type SymInterpret ¶
type SymInterpret struct { Sym x.Keysym Mods uint8 Match uint8 VirtualMod uint8 Flags uint8 Action Action }
size: 4 * 4b
type UnknownAction ¶
type UnknownAction struct {
// contains filtered or unexported fields
}
func (UnknownAction) Type ¶
func (v UnknownAction) Type() uint8
type UnknownBehavior ¶
type UnknownBehavior struct { Data uint8 // contains filtered or unexported fields }
func (UnknownBehavior) Type ¶
func (v UnknownBehavior) Type() uint8
type UseExtensionCookie ¶
func UseExtension ¶
func UseExtension(conn *x.Conn, wantedMajor, wantedMinor uint16) UseExtensionCookie
func (UseExtensionCookie) Reply ¶
func (cookie UseExtensionCookie) Reply(conn *x.Conn) (*UseExtensionReply, error)