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

stretch_2d breaks touchscreenbutton in android #10

Closed
amagnoni opened this issue Feb 10, 2014 · 6 comments
Closed

stretch_2d breaks touchscreenbutton in android #10

amagnoni opened this issue Feb 10, 2014 · 6 comments

Comments

@amagnoni
Copy link

forcing display to stretch the 2d content in a low resolution for a android device in a high resolution breaks the touchscreenbutton! texturebutton and button still works! maybe breaks in other platforms too!

@rafalcieslak
Copy link
Contributor

I can confirm this issue. I expect the stretch_2d is supposed to be a very easy way to port a game to a device that uses a different resolution, without rearranging scenes and UI. Indeed it works well in most cases, but the touchscreen buttons are indeed working incorrectly. Given the fact there is such a wide number of touchscreen devices, this setting is probably particularly important for android platforms.
From my investigations it appears that while they display correctly, they will not react on touching. Probably the point of the problem is while the engine draws them properly stretched, the touch-detection mechanism is not aware of the stretch_2d value.

@godotengine
Copy link
Collaborator

I guess I broke it at some point, though I guess besides fixing this I should work on a tutorial explaining different methods to stretch the screen

@amagnoni
Copy link
Author

It will be great.
But please, Prioritize a fix for touchscreenbutton.
Because without this is impossible to release a game for android with buttons on screen.
As a lame java developer i don't know where to look for fix this.

@reduz
Copy link
Member

reduz commented Feb 14, 2014

i think it's fixed, please test

@amagnoni
Copy link
Author

Yeah! It's fixed! Thanks!
I think you can close this issue!

Can you help me on this post?
http://www.godotengine.org/forum/viewtopic.php?f=11&t=70&sid=e01a0d12cc1020eb71e3af510ca71e4a

@adolson
Copy link
Contributor

adolson commented Dec 9, 2014

close

@reduz reduz closed this as completed Dec 9, 2014
hungrymonkey referenced this issue in hungrymonkey/godot Sep 30, 2017
luiscla27 added a commit to luiscla27/godot that referenced this issue Dec 29, 2020
lawnjelly added a commit to lawnjelly/godot that referenced this issue Mar 30, 2023
YeldhamDev pushed a commit to YeldhamDev/godot that referenced this issue Jul 21, 2023
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

4 participants