To enable multitouch on an application that will run on iPad, With this order reached:
system.activate( “multitouch” )
To enable multitouch on an application that will run on iPad, With this order reached:
system.activate( “multitouch” )
Creo que la pregunta no se entendió o está mal traducida. Espero que Brent la conteste. Preguntaba si con sólo activar el multitouch alcanza:
system.activate( “multitouch” )
Estoy utilizando dos eventos simultáneos: un desplazamiento derecha-izquierda y un disparo. Cuando provoco el disparo el desplazamiento se interrumpe. Por eso pregunto si falta algo más además de activar el multitouch.
Problems with multitouch
In an application I have simulated a joystick and an action button.
If you use the joystick and the object is moving, pressing the action button joystick stops working, whether I’m playing it or not.
I have enabled multitouch, but I’m sure something is missing.
I’m trying to understand how the API setFocus () works, but not if the solution is there.
Something is wrong.
system.activate(“multitouch”) only enables multitouch in your application. However, writing code for single touch and turning on multitouch is not enough - when using multitouch you need to distinguish between several touches (e.g several fingers) by tracking the unique event.id given to each touch.
Setfocus is probably not what you need here.
There are several sample apps in the SampleCode folder that covers musing multi-touch. These are great starting points.
Rob
Any luck getting things to work?
Not yet. I keep reading, testing and learning. There are examples that are very unclear. Hopefully find the solution.
Creo que la pregunta no se entendió o está mal traducida. Espero que Brent la conteste. Preguntaba si con sólo activar el multitouch alcanza:
system.activate( “multitouch” )
Estoy utilizando dos eventos simultáneos: un desplazamiento derecha-izquierda y un disparo. Cuando provoco el disparo el desplazamiento se interrumpe. Por eso pregunto si falta algo más además de activar el multitouch.
Problems with multitouch
In an application I have simulated a joystick and an action button.
If you use the joystick and the object is moving, pressing the action button joystick stops working, whether I’m playing it or not.
I have enabled multitouch, but I’m sure something is missing.
I’m trying to understand how the API setFocus () works, but not if the solution is there.
Something is wrong.
system.activate(“multitouch”) only enables multitouch in your application. However, writing code for single touch and turning on multitouch is not enough - when using multitouch you need to distinguish between several touches (e.g several fingers) by tracking the unique event.id given to each touch.
Setfocus is probably not what you need here.
There are several sample apps in the SampleCode folder that covers musing multi-touch. These are great starting points.
Rob
Any luck getting things to work?
Not yet. I keep reading, testing and learning. There are examples that are very unclear. Hopefully find the solution.
hi fferraro67,
setFocus is what you need, but the implementation in Corona doesn’t allow to set/unset multiple event IDs.
this library can help with that situation: https://github.com/dmccuskey/dmc-touchmanager
cheers, dmc
hi fferraro67,
setFocus is what you need, but the implementation in Corona doesn’t allow to set/unset multiple event IDs.
this library can help with that situation: https://github.com/dmccuskey/dmc-touchmanager
cheers, dmc