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
Functions
Section titled “Functions”getSourceName
Section titled “getSourceName”inline const char * getSourceName(EventSource source)Get human-readable name for an event source (for logging)
Declared in crosspad/event/EventTypes.hpp:68.
getEventName
Section titled “getEventName”inline const char * getEventName(EventType type)Get human-readable name for an event type (for logging)
Declared in crosspad/event/EventTypes.hpp:88.
EventType
Section titled “EventType”Event types dispatched through the CrossPad event bus.
Used in Tempo and transport, Motion and vibration, UI kit.
| Value | Value | Description |
|---|---|---|
NoteOn | ||
NoteOff | ||
PadPressed | ||
PadReleased | ||
AppChanged | Posted 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.
EventSource
Section titled “EventSource”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.
| Value | Value | Description |
|---|---|---|
PadManager | Physical pad presses (via STM32 SYSEX) | |
MidiInput | External MIDI devices (USB, UART, BLE) | |
Cli | Command line interface / serial console. | |
App | Generic application source. | |
AppOther | Events from other apps (cross-app communication) | |
System | System-wide events (init, shutdown) | |
Gui | GUI-related events (screen changes, user interaction) | |
SequencerCallback | Sequencer playback triggering samples. | |
SequencerInput | Live pad input during sequencer recording. | |
SamplePlayback | Sample playback state info (wavIdx, note) | |
Imu | Motion recognised in the IMU itself. | |
Max |
Declared in crosspad/event/EventTypes.hpp:49.