Usage for “non-standard” different button setups seems pretty rare, which probably contributes to the lack of information, so I’m hoping some light can be shed on them.
In common/events.h
:
enum BUTTON : uint32_t {
BUTTON_NONE = 0, // used for gestures and the like
BUTTON_POWER = 1,
BUTTON_AUX = 2,
BUTTON_AUX2 = 4,
BUTTON_UP = 8,
BUTTON_DOWN = 16,
BUTTON_LEFT = 32,
BUTTON_RIGHT = 64,
BUTTON_SELECT = 128,
// D-pad and FIRE//MODE_SELECT/CLIP_DETECT/RELOAD and RANGE have the same numbers,
// so you can't have a D-pad in a blaster.
BUTTON_FIRE = 8,
BUTTON_MODE_SELECT = 16,
BUTTON_CLIP_DETECT = 32,
BUTTON_RELOAD = 64,
BUTTON_RANGE = 128,
BUTTON_BLADE_DETECT = 256,
MODE_ANY_BUTTON = 512,
BUTTON_TRIGGER_ONE = 1,
BUTTON_TRIGGER_TWO = 2,
BUTTON_TRIGGER_THREE = 4,
BUTTON_TRIGGER_FOUR = 8,
BUTTON_TRIGGER_FIVE = 16,
BUTTON_TRIGGER_SIX = 32,
BUTTON_TRIGGER_SEVEN = 64,
BUTTON_TRIGGER_EIGHT = 128,
MODE_ON = 1024,
MODE_OFF = 0,
};
All these are events that can be triggered by a button, right?
It seems like certain events like BUTTON_BLADE_DETECT
would be what’s triggered when, well, blade detect is shorted, and thus you wouldn’t want to use that for a button, but you could, right?
What is MODE_ANY_BUTTON
? How about MODE_ON
and MODE_OFF
?
These seem like things used elsewhere in ProffieOS/having some other meaning, so just want to know if they’re even relevant to button configuration or if I can safely ignore them.