Skip to content

Struct SYN_ButtonCombo

ClassList > SYN_ButtonCombo

Combination button descriptor for simultaneous multi-button presses.

  • #include <syn_button.h>

Public Attributes

Type Name
bool active
const SYN_Button ** buttons
size_t count
uint8_t events
SYN_ButtonCallback on_combo
void * on_combo_ctx

Public Attributes Documentation

variable active

bool SYN_ButtonCombo::active;

True while combination is active


variable buttons

const SYN_Button** SYN_ButtonCombo::buttons;

Array of pointers to monitored buttons


variable count

size_t SYN_ButtonCombo::count;

Number of buttons in combination


variable events

uint8_t SYN_ButtonCombo::events;

Pending events


variable on_combo

SYN_ButtonCallback SYN_ButtonCombo::on_combo;

Callback when all buttons are held


variable on_combo_ctx

void* SYN_ButtonCombo::on_combo_ctx;

Callback context



The documentation for this class was generated from the following file src/syntropic/input/syn_button.h