如何让 Windows 10 Game Bar 出现在游戏中?

2022-01-15 00:00:00 windows windows-10 c++

我在 C++ 中使用 SDL 和 OpenGL 制作了一个游戏,这在游戏中当然很常见.Windows 10 应该能够检测到它是一个游戏并在启动它时显示游戏栏,但它没有.如何让 Windows 10 将其检测为游戏?

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?

推荐答案

Windows 无法检测到"您正在玩游戏.从字面上看,它没有办法神奇地解决这个问题.哎呀,我可以想到许多类型的程序,人类 很难将其归类为游戏(例如 Stack Overflow,它根本不使用 OpenGL 或 SDL!).

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!).

用 Win+G 加载游戏栏,并勾选是的,这是一个游戏",以便 Windows 下次记住.

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

  • http://www.tenforums.com/tutorials/8686-game-dvr-remember-game-undo-windows-10-a.html

相关文章