Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » mouse pointer speed

This thread is locked; no one can reply to it. rss feed Print
mouse pointer speed
alex glez
Member #16,757
October 2017

Hello !!. is it possible in allegro 5 to modify and obtain the speed of the mouse pointer ?. Thank you

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

No. That is controlled by your OS.

However, you can confine the mouse to a certain position or area on the screen and then monitor mouse mickeys. That will allow you to determine how many pixels the mouse moved. You can then scale that as you like to simulate faster or slower mice.

Alternatively you can track the mickeys, and scale the dx and dy and then set the mouse position. That's kind of a big hack, but it might work.

alex glez
Member #16,757
October 2017

Thank you very much, I will try to use your trick.

Go to: