diff options
author | Daniel Stone <daniel.stone@nokia.com> | 2006-07-19 13:56:23 -0400 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-07-21 15:19:51 -0400 |
commit | a274e7296b1bdd6f6c921f28b087610cec9548e0 (patch) | |
tree | 4966c52feb1b4a35cf2ba66b74b8e76804f1b2a9 /include/inputstr.h | |
parent | b308dbf273f8c26361b0fee7aca64aec3245f60b (diff) |
add GetPointerEvents/GetKeyboardEvents framework
Add GetPointerEvents (with XFree86 pointer acceleration) and GetKeyboardEvents
to the DIX. Extend the ValuatorClass structure to account for same.
Diffstat (limited to 'include/inputstr.h')
-rw-r--r-- | include/inputstr.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/inputstr.h b/include/inputstr.h index 5c294975a..8b877bcbd 100644 --- a/include/inputstr.h +++ b/include/inputstr.h @@ -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 { |