Skip to content

QuickSettings on SteamDeck does not trigger GameOverlayActivated_t #20

@nick5454

Description

@nick5454

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");
	}
}

}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions