Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.0k views
in Technique[技术] by (71.8m points)

c++ - How to make Windows 10 Game Bar appear on game?

I made a game using SDL and OpenGL in C++, which is of course common for games. Windows 10 should be able to detect that it's a game and show the Game Bar when starting it, but it doesn't. What can I do to make Windows 10 detect it as a game?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Windows cannot "detect" that you are playing a game. There is literally no way for it to magically work that out. Heck, I can think of a number of kinds of programs that a human would have difficulty categorising as a game or not (such as Stack Overflow, which doesn't use OpenGL or SDL whatsoever!).

Load up the game bar with Win+G, and check "Yes, this is a game" so that Windows remembers for next time.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

63 comments

56.5k users

...