Search Unity

Question How to detect controller Home button press

Discussion in 'Input System' started by mukulabdagiri, Mar 28, 2023.

  1. mukulabdagiri

    mukulabdagiri

    Joined:
    Jul 1, 2016
    Posts:
    23
    Hi, this has been asked before
    https://forum.unity.com/threads/how-to-get-detect-home-button-press.89198/
    but the solution doesnt seem to work.
    OnApplicationPause() is not getting triggered on Home button press. The app continues to run in the background. I also tried OnApplicationFocus() but that works if application goes out of focus for keyboard and mouse inputs. Whats the best way to detect controller home button press?