7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * Copyright © 2009 Red Hat, Inc.
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * copy of this software and associated documentation files (the "Software"),
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * to deal in the Software without restriction, including without limitation
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * and/or sell copies of the Software, and to permit persons to whom the
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * Software is furnished to do so, subject to the following conditions:
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * The above copyright notice and this permission notice (including the next
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * paragraph) shall be included in all copies or substantial portions of the
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * Software.
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * DEALINGS IN THE SOFTWARE.
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Indices into the versions[] array (XExtInt.c). Used as a index to
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * retrieve the minimum version of XI from _XiCheckExtInit.
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * For indices 0 to 6 see XI.h */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Property event flags */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Passive grab types */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Passive grab modifier */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* XIAllowEvents event-modes */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* DeviceChangedEvent change reasons */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Hierarchy flags */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* ChangeHierarchy constants */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Valuator modes */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Device types */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Device classes */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Device event flags (common) */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Device event flags (key events only) */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Device event flags (pointer events only) */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* XI2 event mask macros */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync#define XISetMask(ptr, event) (((unsigned char*)(ptr))[(event)>>3] |= (1 << ((event) & 7)))
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync#define XIClearMask(ptr, event) (((unsigned char*)(ptr))[(event)>>3] &= ~(1 << ((event) & 7)))
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync#define XIMaskIsSet(ptr, event) (((unsigned char*)(ptr))[(event)>>3] & (1 << ((event) & 7)))
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Fake device ID's for event selection */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Event types */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* NOTE: XI2LASTEVENT in xserver/include/inputstr.h must be the same value
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * as XI_LASTEVENT if the server is supposed to handle masks etc. for this
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * type of event. */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Event masks.
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * Note: the protocol spec defines a mask to be of (1 << type). Clients are
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * free to create masks by bitshifting instead of using these defines.
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync#define XI_DeviceChangedMask (1 << XI_DeviceChanged)
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync#define XI_ButtonReleaseMask (1 << XI_ButtonRelease)
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync#define XI_HierarchyChangedMask (1 << XI_HierarchyChanged)
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync#define XI_PropertyEventMask (1 << XI_PropertyEvent)
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync#define XI_RawKeyReleaseMask (1 << XI_RawKeyRelease)
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync#define XI_RawButtonPressMask (1 << XI_RawButtonPress)
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync#define XI_RawButtonReleaseMask (1 << XI_RawButtonRelease)
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync#endif /* _XI2_H_ */