Cant change mouse speed with SPI_SETMOUSE !
-
hi i have been trying for bout 2 hrs to change mosu espeed with the floowing code and just doesnt work. Im using windows xp. long speed[3], new_speed[3]; // Get current mouse speed SystemParametersInfo(SPI_GETMOUSE, NULL, speed, NULL); new_speed[0] = speed[0]; new_speed[1] = speed[1]; new_speed[2] = speed[2] * 2; // Set the mouse speed two times faster SystemParametersInfo(SPI_SETMOUSE, NULL, new_speed, NULL); When i debug i can see that new_speed[2] is changing but it has no visual effect on the cursor. It just doesnt make any sense. When i go into control panel the speed is always the same!! I could rerally use some help here. Cheers Guys
-
hi i have been trying for bout 2 hrs to change mosu espeed with the floowing code and just doesnt work. Im using windows xp. long speed[3], new_speed[3]; // Get current mouse speed SystemParametersInfo(SPI_GETMOUSE, NULL, speed, NULL); new_speed[0] = speed[0]; new_speed[1] = speed[1]; new_speed[2] = speed[2] * 2; // Set the mouse speed two times faster SystemParametersInfo(SPI_SETMOUSE, NULL, new_speed, NULL); When i debug i can see that new_speed[2] is changing but it has no visual effect on the cursor. It just doesnt make any sense. When i go into control panel the speed is always the same!! I could rerally use some help here. Cheers Guys
Try using SPI_SETMOUSESPEED instead. SPI_SETMOUSE only sets the acceleration thresholds, not the actual speed. Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"