3

Any ideas on how I can slow down the mouse speed in a wpf application. Google didn't come up with anything. Should this be dealt with native events from Win32.

mihajlv
  • 2,275
  • 4
  • 36
  • 59
  • Are you talking about slowing the mouse speed over your particular control/window, or are you talking about a system-wide change a la the Mouse control panel? – djdanlib Dec 21 '11 at 18:26
  • 2
    [here](http://www.codeguru.com/forum/showpost.php?s=800d0b57a1e020ecd4f6a58a0dd5487c&p=1592814&postcount=2) – Jake Berger Dec 21 '11 at 18:41
  • awesome thank you, if you post it as an answer I'll accept it. – mihajlv Dec 21 '11 at 18:43
  • it worked, but system wide, any suggestion as to how to constrain it to the window? I guess it would work, to check if the mouse is inside the window slow it down, if it is outside the window return it to normal, but then there would need to be a way to find out what the normal is. – mihajlv Dec 21 '11 at 18:51

1 Answers1

4

here

SPI_GETMOUSESPEED = 112 decimal
SPI_SETMOUSESPEED = 113 decimal
source

OnAppStart -> get system current mouse speed
OnMouseEnter -> set to slow
OnMouseLeave -> set to system
OnAppShutdown -> set to system

EDIT
Additional Reference

Jake Berger
  • 5,237
  • 1
  • 28
  • 22