Name

focused

Examples
def draw():
    background(255)
    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

Updated on Mon Sep 21 15:53:25 2020.

If you see any errors or have comments, please let us know.