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

Unable to long press on Android unless I click somewhere else #91651

Open
Fabuland opened this issue May 7, 2024 · 0 comments
Open

Unable to long press on Android unless I click somewhere else #91651

Fabuland opened this issue May 7, 2024 · 0 comments

Comments

@Fabuland
Copy link

Fabuland commented May 7, 2024

Tested versions

Reproducible in 4.2.1

System information

Android 13

Issue description

I made a TouchScreenButton node and, when I use the is_pressed() bool in the _process function it works well in Windows while testing but, when I try to debug on Android, the long press only lasts for about 1 second and then it stops working. I tried it with different buttons and the problem persists.

But, when I click the TouchScreenButton and I touch somewhere else on the screen, it appears to work like normal.

Steps to reproduce

func _process(_delta): 
	if touchbutton.is_pressed():
		print("pressed")

On Android, try to press the button and see if the print is consistent in console. For me, it only shows a few lines and then it stops showing anything, which means it stops the long press after a second.

Minimal reproduction project (MRP)

N/A

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

No branches or pull requests

1 participant