mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
dix: update pointer acceleration code to use ValuatorMask
Signed-off-by: Simon Thum <simon.thum@gmx.de> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
8128846e16
commit
a4b8526185
4 changed files with 70 additions and 99 deletions
|
|
@ -106,6 +106,8 @@ typedef struct _ClassesRec *ClassesPtr;
|
|||
typedef struct _SpriteRec *SpritePtr;
|
||||
typedef union _GrabMask GrabMask;
|
||||
|
||||
typedef struct _ValuatorMask ValuatorMask;
|
||||
|
||||
typedef struct _EventList {
|
||||
xEvent* event;
|
||||
int evlen; /* length of allocated memory for event in bytes. This is not
|
||||
|
|
@ -141,10 +143,8 @@ typedef void (*DeviceUnwrapProc)(
|
|||
|
||||
/* pointer acceleration handling */
|
||||
typedef void (*PointerAccelSchemeProc)(
|
||||
DeviceIntPtr /*pDev*/,
|
||||
int /*first_valuator*/,
|
||||
int /*num_valuators*/,
|
||||
int* /*valuators*/,
|
||||
DeviceIntPtr /*device*/,
|
||||
ValuatorMask* /*valuators*/,
|
||||
int /*evtime*/);
|
||||
|
||||
typedef void (*DeviceCallbackProc)(
|
||||
|
|
@ -163,8 +163,6 @@ typedef struct _DeviceRec {
|
|||
Bool on; /* used by DDX to keep state */
|
||||
} DeviceRec, *DevicePtr;
|
||||
|
||||
typedef struct _ValuatorMask ValuatorMask;
|
||||
|
||||
typedef struct {
|
||||
int click, bell, bell_pitch, bell_duration;
|
||||
Bool autoRepeat;
|
||||
|
|
|
|||
Loading…
Reference in a new issue