Touch table

Hello, so my problem is is that i’m using this snippet of code and try to check touch count:

if action_id == hash("touch") and #action.touch > 0 and #action.touch < 5 then
        msg.post("main_gui#gui", "debug_finger_count", {text = #action.touch})

So everything works if i’m pressing with 2 fingers the output is 2, but when i try to press with 3 or more, the output is always 1 how come ?

One possibility. Check if your device actually supports more than 2 touches. Many cheap androids don’t.

1 Like

If i put all 4 fingers at the same time it outputs 1, but if i put them in order like 1,2,3,4 one after another it outputs 4 :confused:

After all it was device, i used HTC Desire 620 and it didn’t work, but it worked on samsung s7, so that solved my problem :smiley:

4 Likes