I'm trying to implement some back button functionality for my game and I'm encountering some strange behaviour. If I create a new MonoGame project with all default settings and, in Activity1, override OnBackPressed to have the following...
public override void OnBackPressed()
... Then run the game and press the back button, I never get the debug statement, nor does a breakpoint in there get it.
I did some googling around and others have logged this issue, as far back as 2015, and I didn't see any resolutions. This kind of seems like a bug; however, that same googling yielded a workaround.
If I do the following in my Update method...
public void Update(GameTime gameTime)
System.Diagnostics.Debug.WriteLine("Back button is down.");
... I actually do get the debug statement.
So I want to check in and see if this is intended or not. For those of you who have developed on Android, is this just how it works or is there something I'm missing?