MouseCtrl doesn't need to save values we never use

Makes it into a no-op, like evdev's PtrCtrl function, now that
mouse acceleration is completely handled in dix.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Patrick E. Kane <pekane52 at gmail.com>
Reviewed-by: Simon Thum <simon.thum@gmx.de>
This commit is contained in:
Alan Coopersmith
2010-08-11 21:30:40 -07:00
parent 374725ef73
commit cb11e9ca60
2 changed files with 3 additions and 18 deletions

View File

@@ -1546,26 +1546,14 @@ post_event:
/*
* MouseCtrl --
* Alter the control parameters for the mouse. Note that all special
* protocol values are handled by dix.
* Alter the control parameters for the mouse. Note that all
* settings are now handled by dix.
*/
static void
MouseCtrl(DeviceIntPtr device, PtrCtrl *ctrl)
{
InputInfoPtr pInfo;
MouseDevPtr pMse;
pInfo = device->public.devicePrivate;
pMse = pInfo->private;
#ifdef EXTMOUSEDEBUG
ErrorF("MouseCtrl pMse=%p\n", pMse);
#endif
pMse->num = ctrl->num;
pMse->den = ctrl->den;
pMse->threshold = ctrl->threshold;
/* This function intentionally left blank */
}
/*

View File

@@ -214,9 +214,6 @@ typedef struct _MouseDevRec {
int oldBaudRate;
int sampleRate;
int lastButtons;
int threshold; /* acceleration */
int num;
int den;
int buttons; /* # of buttons */
int emulateState; /* automata state for 2 button mode */
Bool emulate3Buttons;