Dynamically changing mouse pointer speed/sensitivity
-
I have written an educational game for school children, and want to add a section which involves moving a mouse pointer over areas of the screen. As the pointer enters a new area, i want to slow down the mouse, and then speed it up again when leaving the area.
Unfortunately, I am at a loss on how to change the pointer speed.
Am I right in thinking that it is to do with the QMouseDevice.setSensitivity() and QMouseHandler? If so, how do I use the MouseHandler to effect a change in the actual pointer movements?
Can anyone point in the right direction?
-
Hi and welcome to devnet,
IIRC, you should rather implement a "virtual pointer" so that you have complete control on it rather than trying to modify your system settings from within your application.