xinput.h revision 5b944e2a
1b1297603Smrg/* 2b1297603Smrg * Copyright 1996 by Frederic Lepied, France. <Frederic.Lepied@sugix.frmug.org> 3b1297603Smrg * 4b1297603Smrg * Permission to use, copy, modify, distribute, and sell this software and its 5b1297603Smrg * documentation for any purpose is hereby granted without fee, provided that 6b1297603Smrg * the above copyright notice appear in all copies and that both that 7b1297603Smrg * copyright notice and this permission notice appear in supporting 85b944e2aSmrg * documentation, and that the name of the authors not be used in 9b1297603Smrg * advertising or publicity pertaining to distribution of the software without 105b944e2aSmrg * specific, written prior permission. The authors make no 11b1297603Smrg * representations about the suitability of this software for any purpose. It 12b1297603Smrg * is provided "as is" without express or implied warranty. 13b1297603Smrg * 145b944e2aSmrg * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15b1297603Smrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 165b944e2aSmrg * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17b1297603Smrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18b1297603Smrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19b1297603Smrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20b1297603Smrg * PERFORMANCE OF THIS SOFTWARE. 21b1297603Smrg * 22b1297603Smrg */ 23b1297603Smrg 245b944e2aSmrg#if HAVE_CONFIG_H 255b944e2aSmrg#include <config.h> 265b944e2aSmrg#endif 275b944e2aSmrg 28b1297603Smrg#include <X11/Xlib.h> 29b1297603Smrg#include <X11/extensions/XInput.h> 30b1297603Smrg#include <X11/Xutil.h> 31b1297603Smrg#include <stdio.h> 32b1297603Smrg#include <stdlib.h> 33b1297603Smrg 34b1297603Smrg#ifndef EXIT_SUCCESS 35b1297603Smrg#define EXIT_SUCCESS 1 36b1297603Smrg#endif 37b1297603Smrg#ifndef EXIT_FAILURE 38b1297603Smrg#define EXIT_FAILURE 0 39b1297603Smrg#endif 40b1297603Smrg 41b1297603SmrgXDeviceInfo* 42b1297603Smrgfind_device_info( 43b1297603Smrg#if NeedFunctionPrototypes 44b1297603Smrg Display *display, 45b1297603Smrg char *name, 46b1297603Smrg Bool only_extended 47b1297603Smrg#endif 48b1297603Smrg ); 49b1297603Smrgint 50b1297603Smrgget_feedbacks( 51b1297603Smrg#if NeedFunctionPrototypes 52b1297603Smrg Display* display, 53b1297603Smrg int argc, 54b1297603Smrg char *argv[], 55b1297603Smrg char *prog_name, 56b1297603Smrg char *prog_desc 57b1297603Smrg#endif 58b1297603Smrg); 59b1297603Smrg 60b1297603Smrgint 61b1297603Smrgset_ptr_feedback( 62b1297603Smrg#if NeedFunctionPrototypes 63b1297603Smrg Display* display, 64b1297603Smrg int argc, 65b1297603Smrg char *argv[], 66b1297603Smrg char *prog_name, 67b1297603Smrg char *prog_desc 68b1297603Smrg#endif 69b1297603Smrg); 70b1297603Smrg 715b944e2aSmrgint 725b944e2aSmrgget_button_map( 735b944e2aSmrg#if NeedFunctionPrototypes 745b944e2aSmrg Display* display, 755b944e2aSmrg int argc, 765b944e2aSmrg char *argv[], 775b944e2aSmrg char *prog_name, 785b944e2aSmrg char *prog_desc 795b944e2aSmrg#endif 805b944e2aSmrg); 815b944e2aSmrg 82b1297603Smrgint 83b1297603Smrgset_button_map( 84b1297603Smrg#if NeedFunctionPrototypes 85b1297603Smrg Display* display, 86b1297603Smrg int argc, 87b1297603Smrg char *argv[], 88b1297603Smrg char *prog_name, 89b1297603Smrg char *prog_desc 90b1297603Smrg#endif 91b1297603Smrg); 92b1297603Smrg 93b1297603Smrgint 94b1297603Smrgset_pointer( 95b1297603Smrg#if NeedFunctionPrototypes 96b1297603Smrg Display* display, 97b1297603Smrg int argc, 98b1297603Smrg char *argv[], 99b1297603Smrg char *prog_name, 100b1297603Smrg char *prog_desc 101b1297603Smrg#endif 102b1297603Smrg); 103b1297603Smrg 104b1297603Smrgint 105b1297603Smrgset_mode( 106b1297603Smrg#if NeedFunctionPrototypes 107b1297603Smrg Display* display, 108b1297603Smrg int argc, 109b1297603Smrg char *argv[], 110b1297603Smrg char *prog_name, 111b1297603Smrg char *prog_desc 112b1297603Smrg#endif 113b1297603Smrg); 114b1297603Smrg 115b1297603Smrgint 116b1297603Smrglist( 117b1297603Smrg#if NeedFunctionPrototypes 118b1297603Smrg Display* display, 119b1297603Smrg int argc, 120b1297603Smrg char *argv[], 121b1297603Smrg char *prog_name, 122b1297603Smrg char *prog_desc 123b1297603Smrg#endif 124b1297603Smrg); 125b1297603Smrg 126b1297603Smrgint 127b1297603Smrgtest( 128b1297603Smrg#if NeedFunctionPrototypes 129b1297603Smrg Display* display, 130b1297603Smrg int argc, 131b1297603Smrg char *argv[], 132b1297603Smrg char *prog_name, 133b1297603Smrg char *prog_desc 134b1297603Smrg#endif 135b1297603Smrg); 136b1297603Smrg 137b1297603Smrgint 138b1297603Smrgversion( 139b1297603Smrg#if NeedFunctionPrototypes 140b1297603Smrg Display* display, 141b1297603Smrg int argc, 142b1297603Smrg char *argv[], 143b1297603Smrg char *prog_name, 144b1297603Smrg char *prog_desc 145b1297603Smrg#endif 146b1297603Smrg); 147b1297603Smrg 148b1297603Smrgint 149b1297603Smrgset_integer_feedback( 150b1297603Smrg#if NeedFunctionPrototypes 151b1297603Smrg Display* display, 152b1297603Smrg int argc, 153b1297603Smrg char *argv[], 154b1297603Smrg char *prog_name, 155b1297603Smrg char *prog_desc 156b1297603Smrg#endif 157b1297603Smrg); 158b1297603Smrg 159b1297603Smrgint 160b1297603Smrgquery_state( 161b1297603Smrg#if NeedFunctionPrototypes 162b1297603Smrg Display* display, 163b1297603Smrg int argc, 164b1297603Smrg char *argv[], 165b1297603Smrg char *prog_name, 166b1297603Smrg char *prog_desc 167b1297603Smrg#endif 168b1297603Smrg); 169b1297603Smrg 1705b944e2aSmrgint 1715b944e2aSmrgcreate_master( 1725b944e2aSmrg#if NeedFunctionPrototypes 1735b944e2aSmrg Display* display, 1745b944e2aSmrg int argc, 1755b944e2aSmrg char *argv[], 1765b944e2aSmrg char *prog_name, 1775b944e2aSmrg char *prog_desc 1785b944e2aSmrg#endif 1795b944e2aSmrg); 1805b944e2aSmrg 1815b944e2aSmrgint 1825b944e2aSmrgremove_master( 1835b944e2aSmrg#if NeedFunctionPrototypes 1845b944e2aSmrg Display* display, 1855b944e2aSmrg int argc, 1865b944e2aSmrg char *argv[], 1875b944e2aSmrg char *prog_name, 1885b944e2aSmrg char *prog_desc 1895b944e2aSmrg#endif 1905b944e2aSmrg); 1915b944e2aSmrg 1925b944e2aSmrgint 1935b944e2aSmrgchange_attachment( 1945b944e2aSmrg#if NeedFunctionPrototypes 1955b944e2aSmrg Display* display, 1965b944e2aSmrg int argc, 1975b944e2aSmrg char *argv[], 1985b944e2aSmrg char *prog_name, 1995b944e2aSmrg char *prog_desc 2005b944e2aSmrg#endif 2015b944e2aSmrg); 2025b944e2aSmrg 2035b944e2aSmrgint 2045b944e2aSmrgfloat_device( 2055b944e2aSmrg#if NeedFunctionPrototypes 2065b944e2aSmrg Display* display, 2075b944e2aSmrg int argc, 2085b944e2aSmrg char *argv[], 2095b944e2aSmrg char *prog_name, 2105b944e2aSmrg char *prog_desc 2115b944e2aSmrg#endif 2125b944e2aSmrg); 2135b944e2aSmrg 2145b944e2aSmrgint 2155b944e2aSmrgset_clientpointer( 2165b944e2aSmrg#if NeedFunctionPrototypes 2175b944e2aSmrg Display* display, 2185b944e2aSmrg int argc, 2195b944e2aSmrg char *argv[], 2205b944e2aSmrg char *prog_name, 2215b944e2aSmrg char *prog_desc 2225b944e2aSmrg#endif 2235b944e2aSmrg); 2245b944e2aSmrg 2255b944e2aSmrgint 2265b944e2aSmrglist_props( 2275b944e2aSmrg#if NeedFunctionPrototypes 2285b944e2aSmrg Display* display, 2295b944e2aSmrg int argc, 2305b944e2aSmrg char *argv[], 2315b944e2aSmrg char *prog_name, 2325b944e2aSmrg char *prog_desc 2335b944e2aSmrg#endif 2345b944e2aSmrg); 2355b944e2aSmrg 2365b944e2aSmrg 2375b944e2aSmrgint 2385b944e2aSmrgset_int_prop( 2395b944e2aSmrg#if NeedFunctionPrototypes 2405b944e2aSmrg Display* display, 2415b944e2aSmrg int argc, 2425b944e2aSmrg char *argv[], 2435b944e2aSmrg char *prog_name, 2445b944e2aSmrg char *prog_desc 2455b944e2aSmrg#endif 2465b944e2aSmrg); 2475b944e2aSmrg 2485b944e2aSmrgint 2495b944e2aSmrgset_float_prop( 2505b944e2aSmrg#if NeedFunctionPrototypes 2515b944e2aSmrg Display* display, 2525b944e2aSmrg int argc, 2535b944e2aSmrg char *argv[], 2545b944e2aSmrg char *prog_name, 2555b944e2aSmrg char *prog_desc 2565b944e2aSmrg#endif 2575b944e2aSmrg); 2585b944e2aSmrg 2595b944e2aSmrgint 2605b944e2aSmrgset_atom_prop( 2615b944e2aSmrg#if NeedFunctionPrototypes 2625b944e2aSmrg Display* display, 2635b944e2aSmrg int argc, 2645b944e2aSmrg char *argv[], 2655b944e2aSmrg char *prog_name, 2665b944e2aSmrg char *prog_desc 2675b944e2aSmrg#endif 2685b944e2aSmrg); 2695b944e2aSmrg 2705b944e2aSmrgint 2715b944e2aSmrgwatch_props( 2725b944e2aSmrg#if NeedFunctionPrototypes 2735b944e2aSmrg Display* display, 2745b944e2aSmrg int argc, 2755b944e2aSmrg char *argv[], 2765b944e2aSmrg char *prog_name, 2775b944e2aSmrg char *prog_desc 2785b944e2aSmrg#endif 2795b944e2aSmrg); 2805b944e2aSmrg 2815b944e2aSmrgint 2825b944e2aSmrgdelete_prop( 2835b944e2aSmrg#if NeedFunctionPrototypes 2845b944e2aSmrg Display* display, 2855b944e2aSmrg int argc, 2865b944e2aSmrg char *argv[], 2875b944e2aSmrg char *prog_name, 2885b944e2aSmrg char *prog_desc 2895b944e2aSmrg#endif 2905b944e2aSmrg); 2915b944e2aSmrg 2925b944e2aSmrg/* end of xinput.h */ 293