Packages

object MouseButton extends ProductReader[MouseButton] with Serializable

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

MouseX

MouseY

KeyState

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MouseButton
  2. Serializable
  3. ProductReader
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def kr(lo: GE = 0.0f, hi: GE = 1.0f, lag: GE = 0.2f): MouseButton

    lo

    value output while button is not pressed

    hi

    value output while button is pressed

    lag

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

  2. def kr: MouseButton
  3. def read(in: RefMapIn, key: String, arity: Int): MouseButton
    Definition Classes
    MouseButtonProductReader