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 Tue Jul 11 06:52:23 2017.
Creative Commons License