minetest / irrlicht

Minetest's fork of Irrlicht
Other
115 stars 87 forks source link

Add IrrlichtDevice::isWindowVisible for Android #269

Closed grorp closed 10 months ago

grorp commented 10 months ago

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