xinput.h revision b1297603
1/*
2 * Copyright 1996 by Frederic Lepied, France. <Frederic.Lepied@sugix.frmug.org>
3 *
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is  hereby granted without fee, provided that
6 * the  above copyright   notice appear  in   all  copies and  that both  that
7 * copyright  notice   and   this  permission   notice  appear  in  supporting
8 * documentation, and that   the  name of  Frederic   Lepied not  be  used  in
9 * advertising or publicity pertaining to distribution of the software without
10 * specific,  written      prior  permission.     Frederic  Lepied   makes  no
11 * representations about the suitability of this software for any purpose.  It
12 * is provided "as is" without express or implied warranty.
13 *
14 * FREDERIC  LEPIED DISCLAIMS ALL   WARRANTIES WITH REGARD  TO  THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED   WARRANTIES OF MERCHANTABILITY  AND   FITNESS, IN NO
16 * EVENT  SHALL FREDERIC  LEPIED BE   LIABLE   FOR ANY  SPECIAL, INDIRECT   OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 * DATA  OR PROFITS, WHETHER  IN  AN ACTION OF  CONTRACT,  NEGLIGENCE OR OTHER
19 * TORTIOUS  ACTION, ARISING    OUT OF OR   IN  CONNECTION  WITH THE USE    OR
20 * PERFORMANCE OF THIS SOFTWARE.
21 *
22 */
23
24#include <X11/Xlib.h>
25#include <X11/extensions/XInput.h>
26#include <X11/Xutil.h>
27#include <stdio.h>
28#include <stdlib.h>
29
30#ifndef EXIT_SUCCESS
31#define EXIT_SUCCESS 1
32#endif
33#ifndef EXIT_FAILURE
34#define EXIT_FAILURE 0
35#endif
36
37XDeviceInfo*
38find_device_info(
39#if NeedFunctionPrototypes
40		 Display	*display,
41		 char		*name,
42		 Bool		only_extended
43#endif
44		 );
45int
46get_feedbacks(
47#if NeedFunctionPrototypes
48		 Display*	display,
49		 int		argc,
50		 char		*argv[],
51		 char		*prog_name,
52		 char		*prog_desc
53#endif
54);
55
56int
57set_ptr_feedback(
58#if NeedFunctionPrototypes
59		 Display*	display,
60		 int		argc,
61		 char		*argv[],
62		 char		*prog_name,
63		 char		*prog_desc
64#endif
65);
66
67int
68set_button_map(
69#if NeedFunctionPrototypes
70		 Display*	display,
71		 int		argc,
72		 char		*argv[],
73		 char		*prog_name,
74		 char		*prog_desc
75#endif
76);
77
78int
79set_pointer(
80#if NeedFunctionPrototypes
81		 Display*	display,
82		 int		argc,
83		 char		*argv[],
84		 char		*prog_name,
85		 char		*prog_desc
86#endif
87);
88
89int
90set_mode(
91#if NeedFunctionPrototypes
92		 Display*	display,
93		 int		argc,
94		 char		*argv[],
95		 char		*prog_name,
96		 char		*prog_desc
97#endif
98);
99
100int
101list(
102#if NeedFunctionPrototypes
103		 Display*	display,
104		 int		argc,
105		 char		*argv[],
106		 char		*prog_name,
107		 char		*prog_desc
108#endif
109);
110
111int
112test(
113#if NeedFunctionPrototypes
114		 Display*	display,
115		 int		argc,
116		 char		*argv[],
117		 char		*prog_name,
118		 char		*prog_desc
119#endif
120);
121
122int
123version(
124#if NeedFunctionPrototypes
125		 Display*	display,
126		 int		argc,
127		 char		*argv[],
128		 char		*prog_name,
129		 char		*prog_desc
130#endif
131);
132
133int
134set_integer_feedback(
135#if NeedFunctionPrototypes
136		 Display*	display,
137		 int		argc,
138		 char		*argv[],
139		 char		*prog_name,
140		 char		*prog_desc
141#endif
142);
143
144int
145query_state(
146#if NeedFunctionPrototypes
147		 Display*	display,
148		 int		argc,
149		 char		*argv[],
150		 char		*prog_name,
151		 char		*prog_desc
152#endif
153);
154
155/* end of xinput.h
156 */
157