1706f2543Smrg/************************************************************ 2706f2543Smrg 3706f2543SmrgCopyright 1989, 1998 The Open Group 4706f2543Smrg 5706f2543SmrgPermission to use, copy, modify, distribute, and sell this software and its 6706f2543Smrgdocumentation for any purpose is hereby granted without fee, provided that 7706f2543Smrgthe above copyright notice appear in all copies and that both that 8706f2543Smrgcopyright notice and this permission notice appear in supporting 9706f2543Smrgdocumentation. 10706f2543Smrg 11706f2543SmrgThe above copyright notice and this permission notice shall be included in 12706f2543Smrgall copies or substantial portions of the Software. 13706f2543Smrg 14706f2543SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15706f2543SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16706f2543SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17706f2543SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18706f2543SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19706f2543SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20706f2543Smrg 21706f2543SmrgExcept as contained in this notice, the name of The Open Group shall not be 22706f2543Smrgused in advertising or otherwise to promote the sale, use or other dealings 23706f2543Smrgin this Software without prior written authorization from The Open Group. 24706f2543Smrg 25706f2543SmrgCopyright 1989 by Hewlett-Packard Company, Palo Alto, California. 26706f2543Smrg 27706f2543Smrg All Rights Reserved 28706f2543Smrg 29706f2543SmrgPermission to use, copy, modify, and distribute this software and its 30706f2543Smrgdocumentation for any purpose and without fee is hereby granted, 31706f2543Smrgprovided that the above copyright notice appear in all copies and that 32706f2543Smrgboth that copyright notice and this permission notice appear in 33706f2543Smrgsupporting documentation, and that the name of Hewlett-Packard not be 34706f2543Smrgused in advertising or publicity pertaining to distribution of the 35706f2543Smrgsoftware without specific, written prior permission. 36706f2543Smrg 37706f2543SmrgHEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 38706f2543SmrgALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 39706f2543SmrgHEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 40706f2543SmrgANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 41706f2543SmrgWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 42706f2543SmrgARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 43706f2543SmrgSOFTWARE. 44706f2543Smrg 45706f2543Smrg********************************************************/ 46706f2543Smrg 47706f2543Smrg/* 48706f2543Smrg * stubs.c -- stub routines for the X server side of the XINPUT 49706f2543Smrg * extension. This file is mainly to be used only as documentation. 50706f2543Smrg * There is not much code here, and you can't get a working XINPUT 51706f2543Smrg * server just using this. 52706f2543Smrg * The Xvfb server uses this file so it will compile with the same 53706f2543Smrg * object files as the real X server for a platform that has XINPUT. 54706f2543Smrg * Xnest could do the same thing. 55706f2543Smrg */ 56706f2543Smrg 57706f2543Smrg#ifdef HAVE_DIX_CONFIG_H 58706f2543Smrg#include <dix-config.h> 59706f2543Smrg#endif 60706f2543Smrg 61706f2543Smrg#include <X11/X.h> 62706f2543Smrg#include <X11/Xproto.h> 63706f2543Smrg#include "inputstr.h" 64706f2543Smrg#include <X11/extensions/XI.h> 65706f2543Smrg#include <X11/extensions/XIproto.h> 66706f2543Smrg#include "XIstubs.h" 67706f2543Smrg#include "xace.h" 68706f2543Smrg 69706f2543Smrg/**************************************************************************** 70706f2543Smrg * 71706f2543Smrg * Caller: ProcXSetDeviceMode 72706f2543Smrg * 73706f2543Smrg * Change the mode of an extension device. 74706f2543Smrg * This function is used to change the mode of a device from reporting 75706f2543Smrg * relative motion to reporting absolute positional information, and 76706f2543Smrg * vice versa. 77706f2543Smrg * The default implementation below is that no such devices are supported. 78706f2543Smrg * 79706f2543Smrg */ 80706f2543Smrg 81706f2543Smrgint 82706f2543SmrgSetDeviceMode(ClientPtr client, DeviceIntPtr dev, int mode) 83706f2543Smrg{ 84706f2543Smrg return BadMatch; 85706f2543Smrg} 86706f2543Smrg 87706f2543Smrg/**************************************************************************** 88706f2543Smrg * 89706f2543Smrg * Caller: ProcXSetDeviceValuators 90706f2543Smrg * 91706f2543Smrg * Set the value of valuators on an extension input device. 92706f2543Smrg * This function is used to set the initial value of valuators on 93706f2543Smrg * those input devices that are capable of reporting either relative 94706f2543Smrg * motion or an absolute position, and allow an initial position to be set. 95706f2543Smrg * The default implementation below is that no such devices are supported. 96706f2543Smrg * 97706f2543Smrg */ 98706f2543Smrg 99706f2543Smrgint 100706f2543SmrgSetDeviceValuators(ClientPtr client, DeviceIntPtr dev, 101706f2543Smrg int *valuators, int first_valuator, int num_valuators) 102706f2543Smrg{ 103706f2543Smrg return BadMatch; 104706f2543Smrg} 105706f2543Smrg 106706f2543Smrg/**************************************************************************** 107706f2543Smrg * 108706f2543Smrg * Caller: ProcXChangeDeviceControl 109706f2543Smrg * 110706f2543Smrg * Change the specified device controls on an extension input device. 111706f2543Smrg * 112706f2543Smrg */ 113706f2543Smrg 114706f2543Smrgint 115706f2543SmrgChangeDeviceControl(ClientPtr client, DeviceIntPtr dev, 116706f2543Smrg xDeviceCtl * control) 117706f2543Smrg{ 118706f2543Smrg switch (control->control) { 119706f2543Smrg case DEVICE_RESOLUTION: 120706f2543Smrg return BadMatch; 121706f2543Smrg case DEVICE_ABS_CALIB: 122706f2543Smrg case DEVICE_ABS_AREA: 123706f2543Smrg return BadMatch; 124706f2543Smrg case DEVICE_CORE: 125706f2543Smrg return BadMatch; 126706f2543Smrg default: 127706f2543Smrg return BadMatch; 128706f2543Smrg } 129706f2543Smrg} 130706f2543Smrg 131706f2543Smrg 132706f2543Smrg/**************************************************************************** 133706f2543Smrg * 134706f2543Smrg * Caller: configAddDevice (and others) 135706f2543Smrg * 136706f2543Smrg * Add a new device with the specified options. 137706f2543Smrg * 138706f2543Smrg */ 139706f2543Smrgint 140706f2543SmrgNewInputDeviceRequest(InputOption *options, InputAttributes *attrs, 141706f2543Smrg DeviceIntPtr *pdev) 142706f2543Smrg{ 143706f2543Smrg return BadValue; 144706f2543Smrg} 145706f2543Smrg 146706f2543Smrg/**************************************************************************** 147706f2543Smrg * 148706f2543Smrg * Caller: configRemoveDevice (and others) 149706f2543Smrg * 150706f2543Smrg * Remove the specified device previously added. 151706f2543Smrg * 152706f2543Smrg */ 153706f2543Smrgvoid 154706f2543SmrgDeleteInputDeviceRequest(DeviceIntPtr dev) 155706f2543Smrg{ 156706f2543Smrg} 157