XIproto.h revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
5307N/A/************************************************************ 5307N/ACopyright 1989, 1998 The Open Group 5307N/APermission to use, copy, modify, distribute, and sell this software and its 5307N/Adocumentation for any purpose is hereby granted without fee, provided that 5307N/Athe above copyright notice appear in all copies and that both that 5307N/Acopyright notice and this permission notice appear in supporting 5307N/AThe above copyright notice and this permission notice shall be included in 5307N/Aall copies or substantial portions of the Software. 5307N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 5307N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 5307N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 5307N/AOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 5307N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 5307N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 5307N/AExcept as contained in this notice, the name of The Open Group shall not be 5307N/Aused in advertising or otherwise to promote the sale, use or other dealings 5307N/Ain this Software without prior written authorization from The Open Group. 5307N/ACopyright 1989 by Hewlett-Packard Company, Palo Alto, California. 5307N/APermission to use, copy, modify, and distribute this software and its 5307N/Adocumentation for any purpose and without fee is hereby granted, 5307N/Aprovided that the above copyright notice appear in all copies and that 5307N/Aboth that copyright notice and this permission notice appear in 5307N/Asupporting documentation, and that the name of Hewlett-Packard not be 5307N/Aused in advertising or publicity pertaining to distribution of the 5636N/Asoftware without specific, written prior permission. 5307N/AHEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 5307N/AALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 5307N/AHEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 5307N/AANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 5307N/AWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 5307N/AARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 5307N/A********************************************************/ 5307N/A/* make sure types have right sizes for protocol structures. */ 5307N/A/********************************************************* 5307N/A * number of events, errors, and extension name. #
define InputClassBits 0x3F /* bits in mode field for input classes *//********************************************************* * Event constants used by library. /********************************************************* * Protocol request constants /********************************************************* * Protocol request and reply structures. /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* * GetSelectedExtensionEvent. /********************************************************* * ChangeDeviceDontPropagateList. /********************************************************* * GetDeviceDontPropagateList. /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* /********************************************************* * ChangeDeviceKeyMapping. /********************************************************* * GetDeviceModifierMapping. /********************************************************* * SetDeviceModifierMapping. /********************************************************* * GetDeviceButtonMapping. /********************************************************* * SetDeviceButtonMapping. /********************************************************* /********************************************************* * THIS REQUEST MUST BE KEPT A MULTIPLE OF 8 BYTES IN LENGTH! * MORE EVENTS MAY FOLLOW AND THEY MUST BE QUAD-ALIGNED! /********************************************************* /********************************************************* /********************************************************* /********************************************************* /* Merged from Metrolink tree for XINPUT stuff */ /* End of merged section */ /********************************************************** * Input extension events. /********************************************************** * DeviceKeyButtonPointer. * Used for: DeviceKeyPress, DeviceKeyRelease, * DeviceButtonPress, DeviceButtonRelease, * ProximityIn, ProximityOut /********************************************************** /********************************************************** * Note that the two high-order bits in the classes_reported * field are the proximity state (InProximity or OutOfProximity), * and the device mode (Absolute or Relative), respectively. /********************************************************** /********************************************************** * DeviceButtonStateNotify. /********************************************************** * Fields must be kept in sync with core mappingnotify event. /**********************************************************