Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Add IrrlichtDevice::isWindowVisible for Android #269

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

grorp
Copy link
Member

@grorp grorp commented Jan 4, 2024

This PR adds a method called isWindowVisible to IrrlichtDevice. It returns false on Android if the app is paused and true in all other cases and on all other platforms.

This is necessary because isWindowActive and similar methods not only return false on Android when the app is paused, but also when it is merely "unfocused" (e.g. a text input dialog is open).

include/IrrlichtDevice.h Outdated Show resolved Hide resolved
@grorp grorp changed the title Add IrrlichtDevice::isAppPaused for Android Add IrrlichtDevice::isWindowVisible for Android Jan 4, 2024
@sfan5 sfan5 merged commit 54b82aa into minetest:master Jan 4, 2024
14 checks passed
@grorp grorp deleted the is-app-paused branch January 6, 2024 14:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants