Replies: 1 comment
-
Other things that might help track focus include |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm making a game, and I'd like it to pause whenever the window loses focus. I've been using
WindowEvent::Focused
for this, but it's not perfect. The problem I have is that media keys (such as volume up/down) are counted as removing focus. How can I detect "real" focus loss, like clicking on another window, but ignore media keys?Interestingly, the media keys still grab focus even when I disable the media key OSD. I'm on Linux, but want a cross-platform solution.
Beta Was this translation helpful? Give feedback.
All reactions