I recently got a trackball that does not have a scroll option. I don't know if this is possible but is there a way to detect if the trackball is being moved while a key is being pressed (lets say the alt key), stop the mouse from moving and scroll according to the direction of the trackball?
I found a way to detect a change in the cursor position but not a change in the mouse position. I also did not find a way to stop the cursor from moving.
Can you help?