mouseX

Input / Mouse

Description

The system variable mouseX always contains the current horizontal position of the mouse.

Syntax

mouseX

Parameters

None

Returns

float

Related

Under the Hood

From Processing.h:

float mouseX = 0, mouseY = 0, pmouseX = 0, pmouseY = 0;