mouseWheel()

Input / Mouse

Description

Called when the mouse wheel moves. The count parameter is positive when scrolled down and negative when scrolled up.

Syntax

void mouseWheel(int count)

Parameters

NameTypeDescription
countintscroll amount, positive=down, negative=up

Returns

void

Related

Under the Hood

From Processing.h:

virtual void mouseWheel(int delta) {}