Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Godot 3.1 android devices does not detect Left mouse click anymore #27387

Closed
mani144 opened this issue Mar 24, 2019 · 8 comments
Closed

Godot 3.1 android devices does not detect Left mouse click anymore #27387

mani144 opened this issue Mar 24, 2019 · 8 comments

Comments

@mani144
Copy link

mani144 commented Mar 24, 2019

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.

@mani144
Copy link
Author

mani144 commented Mar 25, 2019

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

@Calinou
Copy link
Member

Calinou commented Mar 28, 2019

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.

@mani144
Copy link
Author

mani144 commented Mar 31, 2019

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

@eon-s
Copy link
Contributor

eon-s commented Mar 31, 2019

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

@mani144
Copy link
Author

mani144 commented Apr 4, 2019

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

@akien-mga
Copy link
Member

Closing as duplicate of #26880.

@akien-mga akien-mga added this to the 3.2 milestone Jan 14, 2020
@rafrafek
Copy link

Still broken on 4.2.2 Stable. TouchScreenButton detects mouse clicks when running in editor, but not in Android emulator. I have "Emulate Touch From Mouse" enabled.

@akien-mga
Copy link
Member

@rafrafek Please avoid commenting on issues closed 4 years ago, whatever was the problem back then is unlikely to be the same bug you're experiencing now, even if the description sounds similar.

Your issue is probably #88621, which is much newer (introduced in 4.2) than this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants