开发者

how to programmatically turn on or off mouse filter in windows xp

开发者 https://www.devze.com 2023-02-19 04:44 出处:网络
subject is to turn on or off mouse filter. I found all api\'s configuri开发者_运维技巧ng mouse except mouse filter, where is it?if (needToOff())

subject is to turn on or off mouse filter. I found all api's configuri开发者_运维技巧ng mouse except mouse filter, where is it?


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);
    }
0

精彩评论

暂无评论...
验证码 换一张
取 消