On the old ui we simple use the Keycode.Escape but on the new input system how we can do the same functionally to trigger something on Keycode.Escape is pressed? and other Mobile actions how it should work? we need add the keyboard support to be able to use it? or just the touchscreen?
The back button on Android should come out as the escape key like in the old system and in the UI should lead to the Cancel action getting triggered. If either is not the case for you, please file a ticket with the Unity bug reporter.
We do not yet have something equivalent to Input.backButtonLeavesApp.
The home button isnāt treated as input as such but should lead to OnApplicationPaused getting called (as it does with the old input system).
thanks. @Rene-Damm . this solves my problem.
How is it 2023 and the input system still does not support the back button? Having an input check on update JUST for ābackā feels wrong. But trying to capture āescapeā or ācancelā in the input manager is like a 1 in 10 chance of working.
Or am I just doing something incredibly wrong?
Iāve just been affected by this issue and have to switch back to legacy input for this. Quite disappointed.
Same for me
Today Iāve seen this on the changelog for Unity 2022.3.23
Until now weāve been using legacy input only for the Back button. Now we know that using both systems would result in various issues. But there is still no solution for Back button on Android? What should we do then?
@simon-elliston-ball Seeing you replying another thread so I just brazenly tag you here. Could we have a word about this issue? Because supporting Back button is in the Google guidelines for Android.