XKB.h revision 74fe172698ba936102e120dae998c9ebd09cfbdf
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/* $Xorg: XKB.h,v 1.3 2000/08/18 04:05:45 coskrey Exp $ */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/************************************************************
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncCopyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncPermission to use, copy, modify, and distribute this
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncsoftware and its documentation for any purpose and without
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncfee is hereby granted, provided that the above copyright
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncnotice appear in all copies and that both that copyright
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncnotice and this permission notice appear in supporting
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncdocumentation, and that the name of Silicon Graphics not be
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncused in advertising or publicity pertaining to distribution
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncof the software without specific prior written permission.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncSilicon Graphics makes no representation about the suitability
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncof this software for any purpose. It is provided "as is"
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncwithout any express or implied warranty.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncSILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncSOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncAND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncGRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncDAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncDATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsyncTHE USE OR PERFORMANCE OF THIS SOFTWARE.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync********************************************************/
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync/* $XFree86: xc/include/extensions/XKB.h,v 1.5 2002/11/20 04:49:01 dawes Exp $ */
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XKB request codes, used in:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - xkbReqType field of all requests
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - requestMinor field of some events
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * In the X sense, XKB reports only one event.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * The type field of all XKB events is XkbEventCode
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XKB has a minor event code so it can use one X event code for
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * multiple purposes.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - reported in the xkbType field of all XKB events.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - XkbSelectEventDetails: Indicates the event for which event details
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * are being changed
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Event Mask:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - XkbSelectEvents: Specifies event interest.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * NewKeyboardNotify event details:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * AccessXNotify event types:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - The 'what' field of AccessXNotify events reports the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * reason that the event was generated.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * AccessXNotify details:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Used as an event detail mask to limit the conditions under which
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * AccessXNotify events are reported
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Miscellaneous event details:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - event detail masks for assorted events that don't reall
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * have any details.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbAllStateEventsMask XkbAllStateComponentsMask
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbAllIndicatorEventsMask XkbAllIndicatorsMask
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XKB reports one error: BadKeyboard
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * A further reason for the error is encoded into to most significant
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * byte of the resourceID for the error:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbErr_BadDevice - the device in question was not found
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbErr_BadClass - the device was found but it doesn't belong to
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * the appropriate class.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbErr_BadId - the device was found and belongs to the right
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * class, but not feedback with a matching id was
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * The low byte of the resourceID for this error contains the device
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * id, class specifier or feedback id that failed.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Keyboard Components Mask:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Specifies the components that follow a GetKeyboardByNameReply
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * State detail mask:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - The 'changed' field of StateNotify events reports which of
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * the keyboard state components have changed.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Used as an event detail mask to limit the conditions under
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * which StateNotify events are reported.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Controls detail masks:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * The controls specified in XkbAllControlsMask:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - The 'changed' field of ControlsNotify events reports which of
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * the keyboard controls have changed.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - The 'changeControls' field of the SetControls request specifies
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * the controls for which values are to be changed.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Used as an event detail mask to limit the conditions under
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * which ControlsNotify events are reported.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * The controls specified in the XkbAllBooleanCtrlsMask:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - The 'enabledControls' field of ControlsNotify events reports the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * current status of the boolean controls.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - The 'enabledControlsChanges' field of ControlsNotify events reports
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * any boolean controls that have been turned on or off.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - The 'affectEnabledControls' and 'enabledControls' fields of the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * kbSetControls request change the set of enabled controls.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - The 'accessXTimeoutMask' and 'accessXTimeoutValues' fields of
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * an XkbControlsRec specify the controls to be changed if the keyboard
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * times out and the values to which they should be changed.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - The 'autoCtrls' and 'autoCtrlsValues' fields of the PerClientFlags
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * request specifies the specify the controls to be reset when the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * client exits and the values to which they should be reset.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - The 'ctrls' field of an indicator map specifies the controls
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * that drive the indicator.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Specifies the boolean controls affected by the SetControls and
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * LockControls key actions.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbAccessXOptionsMask (XkbStickyKeysMask|XkbAccessXFeedbackMask)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * AccessX Options Mask
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - The 'accessXOptions' field of an XkbControlsRec specifies the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * AccessX options that are currently in effect.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - The 'accessXTimeoutOptionsMask' and 'accessXTimeoutOptionsValues'
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * fields of an XkbControlsRec specify the Access X options to be
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * changed if the keyboard times out and the values to which they
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * should be changed.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbUseCoreKbd is used to specify the core keyboard without having
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * to look up its X input extension identifier.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbUseCorePtr is used to specify the core pointer without having
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * to look up its X input extension identifier.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbDfltXIClass is used to specify "don't care" any place that the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XKB protocol is looking for an X Input Extension
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * device class.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbDfltXIId is used to specify "don't care" any place that the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XKB protocol is looking for an X Input Extension
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * feedback identifier.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbAllXIClasses is used to get information about all device indicators,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * whether they're part of the indicator feedback class
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * or the keyboard feedback class.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbAllXIIds is used to get information about all device indicator
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * feedbacks without having to list them.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbXINone is used to indicate that no class or id has been specified.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbLegalXILedClass(c) True if 'c' specifies a legal class with LEDs
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbLegalXIBellClass(c) True if 'c' specifies a legal class with bells
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbExplicitXIDevice(d) True if 'd' explicitly specifies a device
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbExplicitXIClass(c) True if 'c' explicitly specifies a device class
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbExplicitXIId(c) True if 'i' explicitly specifies a device id
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbSingleXIClass(c) True if 'c' specifies exactly one device class,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * including the default.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbSingleXIId(i) True if 'i' specifies exactly one device
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * identifier, including the default.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbLegalXILedClass(c) (((c)==KbdFeedbackClass)||\
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbLegalXIBellClass(c) (((c)==KbdFeedbackClass)||\
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbSingleXIClass(c) ((((c)&(~0xff))==0)||((c)==XkbDfltXIClass))
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbSingleXIId(c) ((((c)&(~0xff))==0)||((c)==XkbDfltXIId))
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Group Index and Mask:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Indices into the kt_index array of a key type.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Mask specifies types to be changed for XkbChangeTypesOfKey
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * BuildCoreState: Given a keyboard group and a modifier state,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * construct the value to be reported an event.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * GroupForCoreState: Given the state reported in an event,
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * determine the keyboard group.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * IsLegalGroup: Returns TRUE if 'g' is a valid group index.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbBuildCoreState(m,g) ((((g)&0x3)<<13)|((m)&0xff))
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbIsLegalGroup(g) (((g)>=0)&&((g)<XkbNumKbdGroups))
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * GroupsWrap values:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - The 'groupsWrap' field of an XkbControlsRec specifies the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * treatment of out of range groups.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Bits 6 and 7 of the group info field of a key symbol map
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * specify the interpretation of out of range groups for the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * corresponding key.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Action flags: Reported in the 'flags' field of most key actions.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Interpretation depends on the type of the action; not all actions
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * accept all flags.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Option Used for Actions
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * ------ ----------------
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * ClearLocks SetMods, LatchMods, SetGroup, LatchGroup
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * LatchToLock SetMods, LatchMods, SetGroup, LatchGroup
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * LockNoLock LockMods, ISOLock, LockPtrBtn, LockDeviceBtn
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * LockNoUnlock LockMods, ISOLock, LockPtrBtn, LockDeviceBtn
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * UseModMapMods SetMods, LatchMods, LockMods, ISOLock
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * GroupAbsolute SetGroup, LatchGroup, LockGroup, ISOLock
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * UseDfltButton PtrBtn, LockPtrBtn
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * NoAcceleration MovePtr
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * MoveAbsoluteX MovePtr
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * MoveAbsoluteY MovePtr
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * ISODfltIsGroup ISOLock
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * ISONoAffectMods ISOLock
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * ISONoAffectGroup ISOLock
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * ISONoAffectPtr ISOLock
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * ISONoAffectCtrls ISOLock
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * MessageOnPress ActionMessage
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * MessageOnRelease ActionMessage
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * MessageGenKeyEvent ActionMessage
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * AffectDfltBtn SetPtrDflt
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * DfltBtnAbsolute SetPtrDflt
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * SwitchApplication SwitchScreen
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * SwitchAbsolute SwitchScreen
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * The following values apply to the SA_DeviceValuator
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * action only. Valuator operations specify the action
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * to be taken. Values specified in the action are
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * multiplied by 2^scale before they are applied.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Action types: specifies the type of a key action. Reported in the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * type field of all key actions.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#if defined(XF86DDXACTIONS) || defined(XFree86Server)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Specifies the key actions that clear latched groups or modifiers.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync ((1<<XkbSA_NoAction)|(1<<XkbSA_PtrBtn)|(1<<XkbSA_LockPtrBtn)|\
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync (1<<XkbSA_Terminate)|(1<<XkbSA_SwitchScreen)|(1<<XkbSA_SetControls)|\
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync (1<<XkbSA_RedirectKey)|(1<<XkbSA_DeviceBtn)|(1<<XkbSA_LockDeviceBtn))
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Macros to classify key actions
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbIsModAction(a) (((a)->type>=Xkb_SASetMods)&&((a)->type<=XkbSA_LockMods))
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbIsGroupAction(a) (((a)->type>=XkbSA_SetGroup)&&((a)->type<=XkbSA_LockGroup))
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbIsPtrAction(a) (((a)->type>=XkbSA_MovePtr)&&((a)->type<=XkbSA_SetPtrDflt))
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Key Behavior Qualifier:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * KB_Permanent indicates that the behavior describes an unalterable
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * characteristic of the keyboard, not an XKB software-simulation of
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * the listed behavior.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Key Behavior Types:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Specifies the behavior of the underlying key.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Various macros which describe the range of legal keycodes.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbMaxKeyCount (XkbMaxLegalKeyCode-XkbMinLegalKeyCode+1)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbPerKeyBitArraySize ((XkbMaxLegalKeyCode+1)/8)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbIsLegalKeycode(k) (((k)>=XkbMinLegalKeyCode)&&((k)<=XkbMaxLegalKeyCode))
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Assorted constants and limits.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbMaxSymsPerKey (XkbMaxShiftLevel*XkbNumKbdGroups)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Key Type index and mask for the four standard key types.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Extension name and version information
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Explicit map components:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Used in the 'explicit' field of an XkbServerMap. Specifies
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * the keyboard components that should _not_ be updated automatically
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * in response to core protocol keyboard mapping requests.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Map components masks:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Those in AllMapComponentsMask:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Specifies the individual fields to be loaded or changed for the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * GetMap and SetMap requests.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Those in ClientInfoMask:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Specifies the components to be allocated by XkbAllocClientMap.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Those in ServerInfoMask:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Specifies the components to be allocated by XkbAllocServerMap.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbAllClientInfoMask (XkbKeyTypesMask|XkbKeySymsMask|XkbModifierMapMask)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbAllServerInfoMask (XkbExplicitComponentsMask|XkbKeyActionsMask|XkbKeyBehaviorsMask|XkbVirtualModsMask|XkbVirtualModMapMask)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbAllMapComponentsMask (XkbAllClientInfoMask|XkbAllServerInfoMask)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Symbol interpretations flags:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Used in the flags field of a symbol interpretation
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Symbol interpretations match specification:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Used in the match field of a symbol interpretation to specify
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * the conditions under which an interpretation is used.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Indicator map flags:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Used in the flags field of an indicator map to indicate the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * conditions under which and indicator can be changed and the
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * effects of changing the indicator.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Indicator map component specifications:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Used by the 'which_groups' and 'which_mods' fields of an indicator
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * map to specify which keyboard components should be used to drive
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * the indicator.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbIM_UseAnyGroup (XkbIM_UseBase|XkbIM_UseLatched|XkbIM_UseLocked\
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbIM_UseAnyMods (XkbIM_UseAnyGroup|XkbIM_UseCompat)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Compatibility Map Compontents:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Specifies the components to be allocated in XkbAllocCompatMap.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Names component mask:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Specifies the names to be loaded or changed for the GetNames and
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * SetNames requests.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Specifies the names that have changed in a NamesNotify event.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Specifies the names components to be allocated by XkbAllocNames.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * GetByName components:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Specifies desired or necessary components to GetKbdByName request.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Reports the components that were found in a GetKbdByNameReply
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#define XkbGBN_SymbolsMask (XkbGBN_ClientSymbolsMask|XkbGBN_ServerSymbolsMask)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * ListComponents flags
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * X Input Extension Interactions
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Specifies the possible interactions between XKB and the X input
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * extension
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Used to request (XkbGetDeviceInfo) or change (XKbSetDeviceInfo)
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XKB information about an extension device.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Reports the list of supported optional features in the reply to
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbGetDeviceInfo or in an XkbExtensionDeviceNotify event.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * XkbXI_UnsupportedFeature is reported in XkbExtensionDeviceNotify
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * events to indicate an attempt to use an unsupported feature.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Per-Client Flags:
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * - Specifies flags to be changed by the PerClientFlags request.
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync * Debugging flags and controls
74fe172698ba936102e120dae998c9ebd09cfbdfvboxsync#endif /* _XKB_H_ */