mouseDX

Input / Mouse

Description

Accumulated horizontal mouse delta since the last frame. Updated on every raw cursor event, reset to 0 after draw(). Use this instead of mouseX-pmouseX for high-frequency input like FPS camera control.

Syntax

mouseDX

Parameters

None

Returns

float

Related

Under the Hood

From Processing.h:

float mouseDX = 0, mouseDY = 0;

Under the Hood

From Processing.cpp:

mouseDX = 0; mouseDX=0;