add GetPointerEvents/GetKeyboardEvents framework

Add GetPointerEvents (with XFree86 pointer acceleration) and GetKeyboardEvents
to the DIX.  Extend the ValuatorClass structure to account for same.
This commit is contained in:
Daniel Stone
2006-07-19 13:56:23 -04:00
committed by Daniel Stone
parent b308dbf273
commit a274e7296b
4 changed files with 438 additions and 0 deletions

View File

@@ -64,6 +64,10 @@ SOFTWARE.
#define EMASKSIZE MAX_DEVICES
#define POINTER_RELATIVE (1 << 1)
#define POINTER_ABSOLUTE (1 << 2)
#define POINTER_ACCELERATE (1 << 3)
/* Kludge: OtherClients and InputClients must be compatible, see code */
typedef struct _OtherClients {
@@ -150,6 +154,9 @@ typedef struct _ValuatorClassRec {
unsigned short numAxes;
int *axisVal;
CARD8 mode;
int lastx, lasty; /* last event recorded, not posted to
* client; see dix/devices.c */
int dxremaind, dyremaind; /* for acceleration */
} ValuatorClassRec, *ValuatorClassPtr;
typedef struct _ButtonClassRec {