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 Sun Nov 26 15:34:43 2017.
Creative Commons License