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 Feb 27 14:07:12 2024.

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