-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
TouchScreenButton with is_action_just_pressed() bug #82396
Comments
Can you please check,if this is a duplicate of #58562? |
I think it's not a duplicate it's just similar in things doesn't work on
mobile properly , i hope this will be fixed and thanks for the response
Best regards
RoboLamp Dev
…On Wed, 27 Sept 2023, 12:00 am Markus Sauermann, ***@***.***> wrote:
Can you please check,if this is a duplicate of #58562
<#58562>?
—
Reply to this email directly, view it on GitHub
<#82396 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BC2JRBUVMINRZEYLBPWI4TTX4M667ANCNFSM6AAAAAA5IIE7MM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hey, can you please upload the minimal reproduction project? (You have uploaded an image, and not a link to the project) |
Sure, no problem. |
@RoboLampDev |
I'm experiencing the same issue. Here's my minimal project: TouchScreenButtonBugMobile.zip |
exported APK (20 MB, my Google Drive-Account): TouchScreenButton.apk Small error I could find, however, now and then the counter was not increased, but most of the time it was. func _physics_process(_delta : float) -> void:
if Input.is_action_just_pressed('touch_me'):
pressed_count += 1
$Label.text = 'Pressed: %s' % pressed_count |
I tried your exported apk, and the touch event is still not working. |
on my Pixel 4a it doesn't work either, I think the button is too small. |
Alright man. One thing I notice that if you use |
new "APK" (old file replaced), bigger button does not work either ( |
I just tested in |
I think this might help. |
On my tablet (Samsung SM-T870) I can always reproduce the problem with 30 fps. following condition is always Line 306 in 51f81e1
print_line / logcat debug
fps config Engine.max_physics_steps_per_frame = 1
Engine.max_fps = 5 |
this is exactly what im facing too |
Thank you for fixing this issue @Alex2782 |
Notably fixes issues with `is_action_just_*` queries in `_physics_process` for TouchScreenButton. Fixes godotengine#66318. Fixes godotengine#82396. (cherry picked from commit 5137497)
Notably fixes issues with `is_action_just_*` queries in `_physics_process` for TouchScreenButton. Fixes godotengine#66318. Fixes godotengine#82396.
I'm facing a similar issue right now on 4.2.2 Mono. I did not test this further into 4.3 beta since this is closed since Nov 2023 I figured it will probably be the same there. What happens is, I just set a new action on the Input settings and added it to my button as follows:
And here is my Touch Screen Button: And here is my simple code: This print is unreachable. Either with pressed or just pressed it won't happen at all. First I found out about this issue when searching for my problem: #58562 To further test this I created a clean project, made a simple scene like this: And the script attached should do this: But this also did not work, and did not print anything at all. I'm not sure I missed anything, but I guess that's all! |
Godot version
4.1.2.rc1
System information
Godot v4.1.2.rc1 - Windows 10.0.19045 - Vulkan (Mobile) - integrated AMD Radeon(TM) Vega 8 Graphics () - AMD Ryzen 3 2200G with Radeon Vega Graphics (4 Threads)
Issue description
this form with "just" don't work on mobile (android)
i don't know why but when you try it in pc with mouse emulate touch it works fine but when you export the project to the mobile it don't work although is_action_pressed() works fine idk why the one with "just" don't work with TouchScreenButton on mobile please fix that
Steps to reproduce
if Input.is_action_just_pressed("ui_accept") and is_on_floor(): velocity.y = JUMP_VELOCITY
its a basic form of jump when you add TouchScreenButton and assign it with ui_accept and try it it only works in pc not actually on the mobile i cant just the Button dont work
things to note :
-TouchScreenButton work with is_action_pressed() on mobile but is_action_just_pressed() don't work
-is_action_just_pressed() work fine in pc when you click with the mouse but it don't work on mobile
-It only work on mobile if you make a signals for pressed and released for TouchScreenButton
Minimal reproduction project
The text was updated successfully, but these errors were encountered: