Detect home button in mobile phone using blueprint

Hi, is there way I can detect if the user/player pressed the home button in their mobile phone using blueprint? The reason for this question is because I want to refresh/restart my game once they get to their home screen and after some time when the game is inactive, it will refresh or restart once they get back to the game again.

Thank you.

Hello,

Unless I’m misunderstanding you, you only need to use an INPUT ACTION EVENT.

Just like pressing a “jump” button on a keyboard or controller.

You would just have a variable that gets set once this button is triggered, and then reset once the assigned function/event is completed.

1 Like

Thank you! I didn’t realize about the Input Action Event with Android. I thought it was rather complex. Now I can continue with my project, thank you very much again!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.