multitouch

multitouch dont work. How to enable multitouch?

local rect = display.newRect(100,100,15,15) rect.id = "rect" rect:setFillColor(1,0,1); local rect2 = display.newRect(200,200,15,15) rect2.id = "rect2" rect2:setFillColor(0,1,1); local rect3 = display.newRect(150,150,15,15) rect3.id = "rect3" local rect4 = display.newRect(40,40,15,15) rect4.id = "rect4" local function Touch (event) if event.phase == "began" or event.phase == "moved" then if event.target.id == "rect" then rect3.x = rect3.x -1; elseif event.target.id == "rect2" then rect4.x = rect4.x +1; end end end rect:addEventListener("touch",Touch) rect2:addEventListener("touch",Touch)

https://docs.coronalabs.com/api/library/system/activate.html

Я уже использовал мультитач,но он не работал

So, what is the problem you are having with multitouch?

for me it’s work.

make the pink and blue square more bigger, it’s usefull to touch with finger.

And to have a move, you don’t need to just tap the 2 squares, you will also move them, inside them.

Try one of the multi-touch sample apps in SampleCode/Interface/ like DragMeMultiTouch or MultiTouchButtons. Look in the code for these projects to see how it’s implemented. 

Also remember multi-touch doesn’t work with a mouse. If you have a touch-screen Windows computer multi-touch should work in the simulator by touching the screen, but not with the mouse.

Rob

https://docs.coronalabs.com/api/library/system/activate.html

Я уже использовал мультитач,но он не работал

So, what is the problem you are having with multitouch?

for me it’s work.

make the pink and blue square more bigger, it’s usefull to touch with finger.

And to have a move, you don’t need to just tap the 2 squares, you will also move them, inside them.

Try one of the multi-touch sample apps in SampleCode/Interface/ like DragMeMultiTouch or MultiTouchButtons. Look in the code for these projects to see how it’s implemented. 

Also remember multi-touch doesn’t work with a mouse. If you have a touch-screen Windows computer multi-touch should work in the simulator by touching the screen, but not with the mouse.

Rob