主题是打开或关闭鼠标过滤器。我发现除鼠标过滤器之外所有api的配置鼠标都在哪里?
最佳答案
if (needToOff())
{
deb("mouse filter: off");
mouseAccel.MouseSpeed = mouseAccel.MouseThreshold1 = mouseAccel.MouseThreshold2 = 0;
SystemParametersInfo(SPI_SETMOUSE, 0, &mouseAccel, SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
}
else
{
deb("mouse filter: on");
mouseAccel.MouseSpeed = 1;
mouseAccel.MouseThreshold1 = 6;
mouseAccel.MouseThreshold2 = 10;
SystemParametersInfo(SPI_SETMOUSE, 0, &mouseAccel, SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
}