MouseX:
Filter:
Classes | UGens > User interaction

MouseX : UGen : AbstractFunction : Object

Cursor tracking UGen.
Source: MacUGens.sc
Subclasses: MouseY

Description

Cursor tracking 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 a constant random value between 0.0 and 1.0. For more information see https://github.com/supercollider/supercollider/issues/4544

Class Methods

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

Arguments:

minval

Value corresponding to the left edge of the screen.

maxval

Value corresponding to the right edge of the screen.

warp

Mapping curve. 0 is linear, 1 is exponential (e. g. for freq or times). Alternatively you can specify: 'linear' or 'exponential'.

lag

Lag factor to dezipper cursor movement.

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.signalRange

Examples