Godot: Godot 3.1 android devices does not detect Left mouse click anymore

Created on 24 Mar 2019  路  6Comments  路  Source: godotengine/godot

Godot version:

3.1 Stable

OS/device including version:

Android devices only, not desktop

Issue description:

I have been developing a game since 3.0 , and when 3.1 beta has been released i keep testing it and shift my project to it, however my last testing was on godot 3.1beta 10. which the game was working correctly, however when stable came, everything changed. for a certain reason the touch is not detected anymore.

Steps to reproduce:
Android devices is needed!
Create any 2d node,and a label node , use the following script
func _process(delta):
if Input.is_action_just_pressed("touch"):
print('im touched')
get_node("Label").text = 'im touched'

add touch map to left click on mouse.

this been tested on emulate mouse to touch and touch to mouse. none of them is working.

archived bug android input

Most helpful comment

i changed the device in input maps and made it from device:0 to device:all , this seems to solve the problem. who ever im not sure why it did stop working

All 6 comments

i changed the device in input maps and made it from device:0 to device:all , this seems to solve the problem. who ever im not sure why it did stop working

Are you using a mouse on Android (which is possible, I'd just like to make sure)? Also, are you testing on a native device or in an emulator?

It's good that it works when the device is set to "all", but I think it should still work when device ID 0 is specified.

Are you using a mouse on Android (which is possible, I'd just like to make sure)? Also, are you testing on a native device or in an emulator?

It's good that it works when the device is set to "all", but I think it should still work when device ID 0 is specified.

I used native android samsung S9 with a regular touches.
thank you for the reply

Probably related to #26880, check if the id reported is -1 like on that issue.

Probably related to #26880, check if the id reported is -1 like on that issue.

im not sure how to do that, i think it is similar

Closing as duplicate of #26880.

Was this page helpful?
0 / 5 - 0 ratings