Steamworks.NET-Test icon indicating copy to clipboard operation
Steamworks.NET-Test copied to clipboard

QuickSettings on SteamDeck does not trigger GameOverlayActivated_t

Open nick5454 opened this issue 2 years ago • 0 comments

Using code found here https://steamworks.github.io/gettingstarted/ This only works for the Steam button, but not for the Quick Settings button. Is there another callback that should be used to detect the QuickSettings button overlay?

Example `public class SteamScript : MonoBehaviour { protected Callback<GameOverlayActivated_t> m_GameOverlayActivated;

private void OnEnable() {
	if (SteamManager.Initialized) {
		m_GameOverlayActivated = Callback<GameOverlayActivated_t>.Create(OnGameOverlayActivated);
	}
}

private void OnGameOverlayActivated(GameOverlayActivated_t pCallback) {
	if(pCallback.m_bActive != 0) {
		Debug.Log("Steam Overlay has been activated");
	}
	else {
		Debug.Log("Steam Overlay has been closed");
	}
}

}`

nick5454 avatar Dec 29 '23 21:12 nick5454