GamePad.Back input never triggers on Android 16, breaking back button detection
Prerequisites
- I have verified this issue is present in the
developbranch - I have searched open and closed issues to ensure it has not already been reported.
MonoGame Version
Monogame 3.8.4.2309-develop
Which MonoGame platform are you using?
N/A
Operating System
Windows 11
Description
The current method for detecting the back button press on Android in MonoGame relies on checking:
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
However, on Android 16, this condition is never true. This means the back button press is not detected by MonoGame at all.
This breaks the standard back button handling in MonoGame Android projects, preventing games from responding to back navigation or exit requests through the usual API.
Request: Please update MonoGame’s Android backend so that back button detection works correctly on Android 16 devices, restoring consistent behavior across Android versions without requiring extra manual handling.
Steps to Reproduce
protected override void Update(GameTime gameTime)
{
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed ) // This is never triggered
{
}
}Minimal Example Repo
No response
Expected Behavior
The execution should fall inside the condition specified previously.
Resulting Behavior
The specified condition is never true even if you click on the Back button of your Android phone several times.
Files
No response
Source: MonoGame/MonoGame