Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Bug: Android Back Button - No KEY_DOWN/KEY_UP events, but TWO KEY_DOWN events instead. — Gideros Forum

Bug: Android Back Button - No KEY_DOWN/KEY_UP events, but TWO KEY_DOWN events instead.

kussakovkussakov Member
edited July 2023 in Bugs and issues
I upgraded to the new Gideros (2023.06)
When I play the app on a device I no longer receive Android Back button (301) KEY_UP event.
I did some research and it turned out that every time I press the back button I am receiving 2 KEY_DOWN events instead of (KEY_DOWN/KEY_UP).

Samsung Galaxy S23 Ultra. Android 13.

How to reproduce

Create a simple project with this main.lua:
stage:addEventListener(Event.KEY_UP, 
	function (event)
		print("UP:"..event.keyCode)
	end
)
stage:addEventListener(Event.KEY_DOWN, 
	function (event)
		print("DOWN:"..event.keyCode)
	end
)
Run it on Android device player.
Press the back button once.

Result:
DOWN:301
DOWN:301

Likes: MoKaLux

+1 -1 (+1 / -0 )Share on Facebook

Comments

Sign In or Register to comment.