views:

24

answers:

2

How to configure mouse enhance pointer precision programatically in C++? I know that have some useful commands like SystemParametersInfo, for speed, ...

int x = 15;

SystemParametersInfo(SPI_SETMOUSESPEED, NULL, reinterpret_cast(x),SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE );

... but I cannot find enhance precision----

A: 

'Enhance pointer precision' is an on/off acceleration option.

The SPI_SETMOUSE parameter for SystemParametersInfo will adjust this setting.

I can't tell you exactly how the acceleration values are affected, but if you SPI_GETMOUSE and display the values with the setting on and off you will find it.

Zooba
A: 

This discussion has a bit more information. It has a macro which seems to do what you're looking for. It should be pretty straightforward to convert to C++; it's just a couple DLL calls.

poz