mouseDY

Input / Mouse

Description

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

Syntax

mouseDY

Parameters

None

Returns

float

Related

Under the Hood

From Processing.h:

float mouseDX = 0, mouseDY = 0;

Under the Hood

From Processing.cpp:

mouseDY = 0; mouseDY=0;