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

Window Focus/Visible Events #828

Merged
merged 3 commits into from
Jan 1, 2025
Merged

Window Focus/Visible Events #828

merged 3 commits into from
Jan 1, 2025

Conversation

bjornbytes
Copy link
Owner

  • lovr.focus and lovr.visible are also called for the desktop window now. They have a second parameter, display, indicating whether the event came from the headset or the window.
  • Add lovr.system.isWindowVisible and lovr.system.isWindowFocused.

Minor TODO: simulator could emit visible and mounted events.

@bjornbytes bjornbytes mentioned this pull request Dec 31, 2024
@jmiskovic
Copy link
Contributor

👍 Works well

src/core/os_glfw.h Outdated Show resolved Hide resolved
@bjornbytes bjornbytes merged commit 4e739f3 into dev Jan 1, 2025
10 checks passed
@bjornbytes bjornbytes deleted the more-window-events branch January 1, 2025 03:20
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

Successfully merging this pull request may close these issues.

2 participants