MouseButton:
Filter:
Classes | UGens > User interaction

MouseButton : UGen : AbstractFunction : Object

Mouse button UGen.
Source: MacUGens.sc

Description

Mouse button UGen.

WARNING: This UGen will not work for Linux users using Wayland, as the Wayland protocol does not allow a global keyboard or mouse state to be captured. The UGen will return 0.0 as constant value. For more information see https://github.com/supercollider/supercollider/issues/4544

Class Methods

MouseButton.kr(minval: 0, maxval: 1, lag: 0.2)

Arguments:

minval

Value when the button is not pressed.

maxval

Value when the button is pressed.

lag

Lag factor.

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.signalRange

Examples