Skip to content

EventTypes

#include "crosspad/event/EventTypes.hpp"

Generated from crosspad/event/EventTypes.hpp in crosspad-core. Edit the header’s doxygen comments to change this page.

Portable event type and source enumerations for CrossPad event system.

Recipes that use it: Play a sample, Tempo and transport, Motion and vibration, UI kit

inline const char * getSourceName(EventSource source)

Get human-readable name for an event source (for logging)

Declared in crosspad/event/EventTypes.hpp:68.

inline const char * getEventName(EventType type)

Get human-readable name for an event type (for logging)

Declared in crosspad/event/EventTypes.hpp:88.

Event types dispatched through the CrossPad event bus.

Used in Tempo and transport, Motion and vibration, UI kit.

ValueValueDescription
NoteOn
NoteOff
PadPressed
PadReleased
AppChangedPosted by the Sampler after a kit change. To know when your app opens or closes, use onActivate / onDeactivate.
TempoChanged
LiveModeChanged
GuiUpdateRequired
SamplePlayback
MotionGesture
Max

Declared in crosspad/event/EventTypes.hpp:16.

Event source identifiers for filtering in subscribers.

Subscribers can check the source to decide whether to handle an event. For example, the audio engine ignores NOTE_ON from SEQUENCER_CB source when the sequencer is in record mode (to avoid double-triggering).

Used in Play a sample, UI kit.

ValueValueDescription
PadManagerPhysical pad presses (via STM32 SYSEX)
MidiInputExternal MIDI devices (USB, UART, BLE)
CliCommand line interface / serial console.
AppGeneric application source.
AppOtherEvents from other apps (cross-app communication)
SystemSystem-wide events (init, shutdown)
GuiGUI-related events (screen changes, user interaction)
SequencerCallbackSequencer playback triggering samples.
SequencerInputLive pad input during sequencer recording.
SamplePlaybackSample playback state info (wavIdx, note)
ImuMotion recognised in the IMU itself.
Max

Declared in crosspad/event/EventTypes.hpp:49.