Touch Translation/Transformation + Button
Posted: 11 Oct 2013, 11:22
Hi,
I'm trying to built an application which can use TouchTransform and TouchButton on top of each other, much like its done on any touch device (e.g. Android)
Imagine a bunch of buttons, to many to fit on a screen. When you drag your finger across the screen it will scroll through the 'menu' - when you tap one of the buttons it works like a button - sounds simple, but it's not because touch nodes are exclusive.
I managed to create this behaviour with a combination of TouchTransformation and the old MouseOver node from Ventuz 3.
Basically it checks if the touch is inside the geometry, and if the TouchTranslation doesnt detect a certain threshold of movement, it sends the event on touch release.
This works great with a mouse, but the application is intented for a TUIO touch device, which doesn't give input to the MouseOver node.
Did anyone tried something like this before or has an idea on how to make it usable with touch displays?
ps.: Why did you remove the MouseOver and HitTester in Ventuz 4? Those were great, and pretty much the only kind of non-exclusive collision detection we had ;(
I'm trying to built an application which can use TouchTransform and TouchButton on top of each other, much like its done on any touch device (e.g. Android)
Imagine a bunch of buttons, to many to fit on a screen. When you drag your finger across the screen it will scroll through the 'menu' - when you tap one of the buttons it works like a button - sounds simple, but it's not because touch nodes are exclusive.
I managed to create this behaviour with a combination of TouchTransformation and the old MouseOver node from Ventuz 3.
Basically it checks if the touch is inside the geometry, and if the TouchTranslation doesnt detect a certain threshold of movement, it sends the event on touch release.
This works great with a mouse, but the application is intented for a TUIO touch device, which doesn't give input to the MouseOver node.
Did anyone tried something like this before or has an idea on how to make it usable with touch displays?
ps.: Why did you remove the MouseOver and HitTester in Ventuz 4? Those were great, and pretty much the only kind of non-exclusive collision detection we had ;(