xserver-multidpi/Xext
2005-07-01 20:29:53 +00:00
..
extmod Adding initial build system. 2005-07-01 20:29:53 +00:00
appgroup.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
appgroup.h Merging XORG-CURRENT into trunk 2004-04-23 18:54:16 +00:00
bigreq.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
cup.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
dpms.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
dpmsproc.h Merging XORG-CURRENT into trunk 2004-04-23 18:54:16 +00:00
dpmsstubs.c Merging XORG-CURRENT into trunk 2004-04-23 18:54:16 +00:00
EVI.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
EVIstruct.h Merging XORG-CURRENT into trunk 2004-04-23 18:54:16 +00:00
fontcache.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
Makefile.am Adding initial build system. 2005-07-01 20:29:53 +00:00
mbuf.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
mbufbf.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
mbufpx.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
mitmisc.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
panoramiX.c Bug #1846: Add intentionally undocumented -disablexineramaextension flag to 2005-06-09 02:29:42 +00:00
panoramiX.h Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
panoramiXh.h Merging XORG-CURRENT into trunk 2004-04-23 18:54:16 +00:00
panoramiXprocs.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
panoramiXsrv.h Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
panoramiXSwap.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
README.xtest1-ddx R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00
sampleEVI.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
saver.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
security.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
SecurityPolicy R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00
shape.c Bug #2799: Input shape. (Keith Packard) 2005-06-10 04:01:14 +00:00
shm.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
sleepuntil.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
sleepuntil.h XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folks 2003-11-25 19:29:01 +00:00
sync.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
xcmisc.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
xevie.c Bugzilla #2800 <https://bugs.freedesktop.org/show_bug.cgi?id=2800> Xevie 2005-05-22 01:12:49 +00:00
xf86bigfont.c Change "xf86bigfstr.h" to <X11/extensions/xf86bigfstr.h> for includes. 2005-04-20 15:16:36 +00:00
xprint.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
xres.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
xtest.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
xtest1dd.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
xtest1dd.h Merging XORG-CURRENT into trunk 2004-04-23 18:54:16 +00:00
xtest1di.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
xvdisp.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
xvdisp.h Merging XORG-CURRENT into trunk 2004-04-23 18:54:16 +00:00
xvdix.h Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
xvmain.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
xvmc.c Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00
xvmcext.h Fix includes right throughout the Xserver tree: 2005-04-20 12:25:48 +00:00

There are several code fragments that need to be placed in the device
dependent part of the server.  These are described below.  These code
fragments are device and implementation dependent.

This code fragment should go in your ddx InitInput() routine:

#ifdef XTESTEXT1
extern KeyCode xtest_command_key;
#endif

#ifdef XTESTEXT1
    xtest_command_key = <whatever-is-a-good-keycode-for-your-keyboard>;
#endif

This code fragment should go at the front of the file that handles
keyboards:

#ifdef XTESTEXT1
/*
 * defined in xtestext1di.c
 */
extern int	on_steal_input;
extern Bool	XTestStealKeyData();
#endif XTESTEXT1

This code fragment should go in the function that parses input from the
keyboard or pointer after you know what input action has occurred, but before
you have told the server about it.  If conditionalizes the actual function
call to pass the information on:

#ifdef XTESTEXT1
	if (!on_steal_input ||
	    XTestStealKeyData(code, direction, dev_type, x, y))
#endif /* XTESTEXT1 */
	handle_device_event(...);

This code fragment should go in the function that handles mouse motion after
you have figured out how much the mouse has moved:

#ifdef XTESTEXT1
	if (on_steal_input)
	    XTestStealMotionData(dx, dy, dev, x, y);
#endif XTESTEXT1


This code fragment should go at the front of the os-specific code where
you wait (by doing a select on the socket in our implementation) for
something to happen:

#ifdef	XTESTEXT1
extern int	playback_on;
void XTestComputeWaitTime();
#endif  XTESTEXT1

These code fragments should go in the os-specific code on both sides of
where you wait (by doing a select on the socket in our implementation)
for something to happen:

#ifdef XTESTEXT1
	    if (playback_on)
		    XTestComputeWaitTime(wt = &waittime);
#endif XTESTEXT1
	    ... code to do select ...
	    WakeupHandler(i, LastSelectMask);
#ifdef XTESTEXT1
	    if (playback_on)
		    i = XTestProcessInputAction(i, &waittime);
#endif XTESTEXT1


You also need to implement the following routines (documentation
is needed; for now, see server/ddx/hp/hp/x_hil.c):

void
XTestGenerateEvent(dev_type, keycode, keystate, mousex, mousey)
	int	dev_type;
	int	keycode;
	int	keystate;
	int	mousex;
	int	mousey;

void
XTestGetPointerPos(fmousex, fmousey)
	short *fmousex, *fmousey;

void
XTestJumpPointer(jx, jy, dev_type)
	int	jx;
	int	jy;
	int	dev_type;