Name

focused

Examples
draw <- function() {
    if (focused) {
        ellipse(25, 25, 50, 50)
    } else {
        line(0, 0, 100, 100)
        line(100, 0, 0, 100)
    }
}
Description Confirms if a Processing program is "focused," meaning that it is active and will accept mouse or keyboard input. This variable is True if it is focused and False if not.
Syntax
	if (focused):
	    statements
Creative Commons License