PDA

View Full Version : Relative Mouse control



parmerud
04-25-2010, 10:03 AM
Hi Camille...

First of all thanks for a very nice piece of software... Only one thing bugs me at this moment. When using the relative mouse control give the result of the mouse pointer "drifting" in one direction or the other unless the incoming control value stays at the absolute center value. This is not exactly what I would expect. I am usiing a TouchOSC XY controller and want it to behave like the trackpad of a MacBook or similar. Anyway this can be done? Or do u need to make adjustments to the implementation of the mouse function?

Best

Ake Parmerud

camille
04-26-2010, 08:50 AM
Hey Ake,


I see the point you make but the Relative Move is behaving the correct way: the pointer is incremented by a relative value. This is working well with joystick type controllers.


Now if you think about it, controlling the mouse pointer in a trackpad fashion with the x/y control of TouchOSC is a totally different thing. Enulating a trackpad is not a "relative" movement but rather some kind of composition of "absolute" movement relative to the current mouse position. Therefore another set of mouse events should be created for this purpose (something like Touchpad X, Touchpad Y and Touchpad Touch).


I think it would be interesting to have a touchpad like control style for the mouse. I can see some applications outside of the TouchOSC. So, I will add your request to the todo list, but please bear in mind that I won't be implementing that feature in the near future, unless indeed there are other users also interested.


Cheers,

Cam

steo
01-08-2011, 10:04 AM
Hi !
I have the same issue, I tried to create a trackpad with osculator and touch osc for my ipad, but it doesn't behave like a real trackpad...

Any ideas ?

((steo))

camille
01-09-2011, 12:28 PM
Hey Steo,

That is correct, support for converting a XY control to mouse movements has not been implemented yet, still in the TODO list though, sorry ...


Best,
Cam

tylerpreskitt
07-31-2011, 05:06 PM
I actually thought about this the other day. If you are using something like PureData to route the TouchOSC to OSCualtor, you could UDPsend a sort of "reset to 0.5,0.5" message. I've not implemented this yet, but it shouldn't be hard. It would make the simulated touch pad reset to the middle when "XYPad_Touchdown" = 0 just like when you let go of a joystick on a controller.