Repository navigation
API Interface CustomTrigger
Defined in: src/engine/input/triggers.ts:212
One mapping's instance of a custom trigger, made by its factory (each mapping gets its own, so it may keep state in closures).
readonly pulsed?: boolean;Defined in: src/engine/input/triggers.ts:224
Read after each update: true when it fired a pulse (each pulse performs the action again, as pulse does).
readonly reads?: readonly string[];Defined in: src/engine/input/triggers.ts:216
Actions it reads through others (bare names are of the mapping's set). They're resolved first, as a chord's are.
readonly type?: TriggerType;Defined in: src/engine/input/triggers.ts:214
Explicit (default), implicit or blocker; a spec's type overrides it.
update(
actuated,
dt,
others
): boolean | TriggerStateValue;Defined in: src/engine/input/triggers.ts:222
One frame: actuated is whether the mapping's value is actuated now, dt the frame's
seconds. Return a TriggerState (0 none, 1 ongoing, 2 triggered), or true / false for
triggered / none.
boolean
number
boolean | TriggerStateValue
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference