Xbox One version of window_has_focus()?

Discussion in 'Programming' started by ViridianGames, Jun 21, 2019.

  1. ViridianGames

    ViridianGames Member

    Jun 4, 2019
    I'm creating a game on the Xbox One using UWP. I'm trying to get the correct behavior when the player presses the Home button - when the overlay comes up, gameplay should pause.

    But I can't detect when the overlay comes up. I can't detect if the player presses the Home button because that's not supported by gamepad_button_check() (since it's an OS-level thing). I thought uwp_is_constrained() would help, since the description specifically states that constrained mode can be activated when the game doesn't have the focus, but that's not the behavior I'm seeing - bringing up the overlay doesn't seem to trigger constrained mode. And of course, window_has_focus() doesn't work on the Xbox One.

    Does anyone know how to detect if the Xbox overlay is up within GameMaker?

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice