diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-10-25 01:08:29 +0300 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-10-25 01:08:29 +0300 |
commit | 5b38eb69cdaa154791c7f74e35dbe4d3256b19bd (patch) | |
tree | 81c6f104091dd59485f871d6c59c8102496740ac /include | |
parent | 11fb58be77ac163844e494b2b0a260cf28a7ecd1 (diff) |
dix: add motion history support
Add motion history support (sort of based on the XFree86 DDX's
implementation) to the DIX.
Diffstat (limited to 'include')
-rw-r--r-- | include/input.h | 13 | ||||
-rw-r--r-- | include/inputstr.h | 23 |
2 files changed, 27 insertions, 9 deletions
diff --git a/include/input.h b/include/input.h index f6ef33784..3fe694474 100644 --- a/include/input.h +++ b/include/input.h @@ -418,6 +418,19 @@ extern int GetProximityEvents( int num_valuators, int *valuators); +extern int GetMotionHistorySize( + void); + +extern void AllocateMotionHistory( + DeviceIntPtr pDev); + +extern int GetMotionHistory( + DeviceIntPtr pDev, + xTimecoord *buff, + unsigned long start, + unsigned long stop, + ScreenPtr pScreen); + extern void SwitchCoreKeyboard(DeviceIntPtr pDev); extern void SwitchCorePointer(DeviceIntPtr pDev); diff --git a/include/inputstr.h b/include/inputstr.h index 4a48c9d3b..ada94e6b4 100644 --- a/include/inputstr.h +++ b/include/inputstr.h @@ -146,15 +146,20 @@ typedef struct _AxisInfo { typedef struct _ValuatorClassRec { ValuatorMotionProcPtr GetMotionProc; - int numMotionEvents; - WindowPtr motionHintWindow; - AxisInfoPtr axes; - 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 */ + int numMotionEvents; + int first_motion; + int last_motion; + void *motion; + + WindowPtr motionHintWindow; + + AxisInfoPtr axes; + unsigned short numAxes; + int *axisVal; + int lastx, lasty; /* last event recorded, not posted to + * client; see dix/devices.c */ + int dxremaind, dyremaind; /* for acceleration */ + CARD8 mode; } ValuatorClassRec, *ValuatorClassPtr; typedef struct _ButtonClassRec { |