MouseButton

object MouseButton extends ProductReader[MouseButton]

A UGen that outputs two different values depending on whether the mouse button is pressed. This is useful for testing purposes. Mouse interaction with the regular desktop and windowing system is in no way altered by running this UGen.

===Examples===

// toggle sine frequency
play { SinOsc.ar(MouseButton.kr(400, 440, 0.1)) * 0.1 }
See also
Companion
class
trait Product
trait Mirror
trait ProductReader[MouseButton]
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def kr(lo: GE, hi: GE, lag: GE): MouseButton
Value Params
hi

value output while button is pressed

lag

60 dB decay time of a lag-time smoothing. Use zero to avoid any smoothing.

lo

value output while button is not pressed

def read(in: RefMapIn, key: String, arity: Int): MouseButton