1 | /* $XFree86: xc/programs/Xserver/Xext/xtest1dd.h,v 3.2 2001/08/01 00:44:44 tsi Exp $ */
|
---|
2 | /************************************************************
|
---|
3 |
|
---|
4 | Copyright 1996 by Thomas E. Dickey <[email protected]>
|
---|
5 |
|
---|
6 | All Rights Reserved
|
---|
7 |
|
---|
8 | Permission to use, copy, modify, and distribute this software and its
|
---|
9 | documentation for any purpose and without fee is hereby granted,
|
---|
10 | provided that the above copyright notice appear in all copies and that
|
---|
11 | both that copyright notice and this permission notice appear in
|
---|
12 | supporting documentation, and that the name of the above listed
|
---|
13 | copyright holder(s) not be used in advertising or publicity pertaining
|
---|
14 | to distribution of the software without specific, written prior
|
---|
15 | permission.
|
---|
16 |
|
---|
17 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
|
---|
18 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
---|
19 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
|
---|
20 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
---|
21 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
---|
22 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
---|
23 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
---|
24 |
|
---|
25 | ********************************************************/
|
---|
26 |
|
---|
27 | #ifdef HAVE_DIX_CONFIG_H
|
---|
28 | #include <dix-config.h>
|
---|
29 | #endif
|
---|
30 |
|
---|
31 | #ifndef XTEST1DD_H
|
---|
32 | #define XTEST1DD_H 1
|
---|
33 |
|
---|
34 | extern short xtest_mousex;
|
---|
35 | extern short xtest_mousey;
|
---|
36 | extern int playback_on;
|
---|
37 | extern ClientPtr current_xtest_client;
|
---|
38 | extern ClientPtr playback_client;
|
---|
39 | extern KeyCode xtest_command_key;
|
---|
40 |
|
---|
41 | extern void stop_stealing_input(
|
---|
42 | void
|
---|
43 | );
|
---|
44 |
|
---|
45 | extern void
|
---|
46 | steal_input(
|
---|
47 | ClientPtr /* client */,
|
---|
48 | CARD32 /* mode */
|
---|
49 | );
|
---|
50 |
|
---|
51 | extern void
|
---|
52 | flush_input_actions(
|
---|
53 | void
|
---|
54 | );
|
---|
55 |
|
---|
56 | extern void
|
---|
57 | XTestStealJumpData(
|
---|
58 | int /* jx */,
|
---|
59 | int /* jy */,
|
---|
60 | int /* dev_type */
|
---|
61 | );
|
---|
62 |
|
---|
63 | extern void
|
---|
64 | XTestStealMotionData(
|
---|
65 | int /* dx */,
|
---|
66 | int /* dy */,
|
---|
67 | int /* dev_type */,
|
---|
68 | int /* mx */,
|
---|
69 | int /* my */
|
---|
70 | );
|
---|
71 |
|
---|
72 | extern Bool
|
---|
73 | XTestStealKeyData(
|
---|
74 | unsigned /* keycode */,
|
---|
75 | int /* keystate */,
|
---|
76 | int /* dev_type */,
|
---|
77 | int /* locx */,
|
---|
78 | int /* locy */
|
---|
79 | );
|
---|
80 |
|
---|
81 | extern void
|
---|
82 | parse_fake_input(
|
---|
83 | ClientPtr /* client */,
|
---|
84 | char * /* req */
|
---|
85 | );
|
---|
86 |
|
---|
87 | extern void
|
---|
88 | XTestComputeWaitTime(
|
---|
89 | struct timeval * /* waittime */
|
---|
90 | );
|
---|
91 |
|
---|
92 | extern int
|
---|
93 | XTestProcessInputAction(
|
---|
94 | int /* readable */,
|
---|
95 | struct timeval * /* waittime */
|
---|
96 | );
|
---|
97 |
|
---|
98 | extern void
|
---|
99 | abort_play_back(
|
---|
100 | void
|
---|
101 | );
|
---|
102 |
|
---|
103 | extern void
|
---|
104 | return_input_array_size(
|
---|
105 | ClientPtr /* client */
|
---|
106 | );
|
---|
107 |
|
---|
108 | extern void XTestGenerateEvent(
|
---|
109 | int /* dev_type */,
|
---|
110 | int /* keycode */,
|
---|
111 | int /* keystate */,
|
---|
112 | int /* mousex */,
|
---|
113 | int /* mousey */
|
---|
114 | );
|
---|
115 |
|
---|
116 | extern void XTestGetPointerPos(
|
---|
117 | short * /* fmousex */,
|
---|
118 | short * /* fmousey */
|
---|
119 | );
|
---|
120 |
|
---|
121 | extern void XTestJumpPointer(
|
---|
122 | int /* jx */,
|
---|
123 | int /* jy */,
|
---|
124 | int /* dev_type */
|
---|
125 | );
|
---|
126 |
|
---|
127 | #endif /* XTEST1DD_H */
|
---|