Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QuickSettings on SteamDeck does not trigger GameOverlayActivated_t #20

Open
nick5454 opened this issue Dec 29, 2023 · 0 comments
Open

Comments

@nick5454
Copy link

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

}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant