Bypassing Windows mouse gain and acceleration.

Hi,

I wrote a mouse driver for a special pointing device and I
successfully gather raw deltas from the device and post them in the
system. I noticed that the system applies the acceleration and gain
general settings (mouse section of the control panel) and I could not
find a way to move the cursor of a specific amount of pixels.

I need to be able to impose my own ballistics and I feel that I will
be able to do so only bypassing the acceleration curve and gain set
in the system generic settings.

Is this possible?

Thanks a lot,
Marco.

Marco,

can you use an absolute pointing device/driver? This way your driver can
convent deltas to absolute coordinates and the system would not
apply any acceleration.

Dmitriy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Marco
Laurenzano
Sent: Friday, July 15, 2005 4:34 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Bypassing Windows mouse gain and acceleration.

Hi,

I wrote a mouse driver for a special pointing device and I
successfully gather raw deltas from the device and post them in the
system. I noticed that the system applies the acceleration and gain
general settings (mouse section of the control panel) and I
could not
find a way to move the cursor of a specific amount of pixels.

I need to be able to impose my own ballistics and I feel that I will
be able to do so only bypassing the acceleration curve and gain set
in the system generic settings.

Is this possible?

Thanks a lot,
Marco.

Dmitriy,

the mouse I’m working on does not substitute completely a regular mouse so
I’m not sure that at any time my device is the only moving the cursor. The
side effect of absolute pointing would be a cursor jump when you move from a
regular mouse to my device. I could cope with this problem by monitoring the
position of the cursor, mapping it in the 65535 by 65535 space required by
the absolute pointing coordinate system and compute the new position,
however I don’t know a clever way of doing this in kernel space in an
efficient way.
Any suggestion on this would be really appreciated…

Thanks,
Marco.

Subject: RE: Bypassing Windows mouse gain and acceleration.
From: “Dmitriy Budko”
> Date: Fri, 15 Jul 2005 16:47:26 -0700
> X-Message-Number: 20

> Marco,

> can you use an absolute pointing device/driver? This way your driver can
> convent deltas to absolute coordinates and the system would not=20
> apply any acceleration.

> Dmitriy

> -----Original Message-----
> From: xxxxx@lists.osr.com=20
> [mailto:xxxxx@lists.osr.com]On Behalf Of Marco=20
> Laurenzano
> Sent: Friday, July 15, 2005 4:34 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Bypassing Windows mouse gain and acceleration.
>=20
>=20
> Hi,
>=20
> I wrote a mouse driver for a special pointing device and I =20
> successfully gather raw deltas from the device and post them in the =20
> system. I noticed that the system applies the acceleration and gain =20
> general settings (mouse section of the control panel) and I=20
> could not =20
> find a way to move the cursor of a specific amount of pixels.
>=20
> I need to be able to impose my own ballistics and I feel that I will =20
> be able to do so only bypassing the acceleration curve and gain set =20
> in the system generic settings.
>=20
> Is this possible?
>=20
> Thanks a lot,
> Marco.