Created
July 18, 2022 15:48
-
-
Save brendandawes/ec308f6a945dc2323aa2bd1372fca579 to your computer and use it in GitHub Desktop.
Processing:detect windows platform and bring window to have focus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Useful for installations on windows which detect user interaction | |
if (platform == WINDOWS){ | |
if (frameCount > 1000){ | |
((java.awt.Canvas) surface.getNative()).requestFocus(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment