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:
committed by
Daniel Stone
parent
b308dbf273
commit
a274e7296b
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user