I want to have some navigation buttons, so for example button “left”, and when I click it and keep button down I want my component move smoothly to the left, and when I release mouse button I want to stop mooving.
I consider to use
Timer and then start timer on
mouseDown, and stop it on
But I wonder maybe there is some ready to use virtual method that I can just override.
Some method that is calling continously (in some while loop or in some timer callback) when I keep mouse button down?
How would you solve my issue? Is there anything better than