Re: Changing mouse position from Pharo.
Posted by
Santiago Bragagnolo on
Mar 14, 2013; 5:45pm
URL: https://forum.world.st/Changing-mouse-position-from-Pharo-tp4676580p4676796.html
I think this is not an event,
Some times you need to force the cursor to be in an other position, not in the current one. Maybe you just need to put the cursor over a component like button, or an area, just to guide the user. Actually this is not an event, is just a low level service given by the operative system, that can be useful to have it.
Maybe a consistent way to do this can be that the same place that tell you over which point is the cursor now (The InputEventSensor in the current implementation) have also a setter that talk with the operative system, then you can have something like
mouseSensor position " it gives you the current position of the mouse "
mouseSensor position: 0@0. " it set the current position of the mouse, but not just in the sensor object, but in the operative system"
My scenario is bizarre, i was making experiments with a mouse as an odometry measure unit, and i need to avoid the cursor to reach the corners to keep taking different points in each measure.