Author Topic: Detect if window is active  (Read 943 times)

How would I detect if the Blockland window is active and the user doesn't have the window minimized? I'm making a mod that adjusts the shader quality depending on the framerate and don't want the user clicking off the window to drop the shaders to 0.

There's a function that is called whenever you select the window again:

Code: [Select]
onWindowReactivate()
Sadly, I didn't see any function for deselecting the window.