I’m trying to write a modified buttons config to work with Saber Merchant’s new bridger-style switches, but I’m having trouble with two event types:
button hold + clash to start lockup: This eventid doesn’t work, but you can see what I’m trying to do:
case EVENTID(BUTTON_POWER, EVENT_HELD, MODE_ON|EVENT_CLASH):
if (!SaberBase::Lockup()) {
if (pointing_down_) {
SaberBase::SetLockup(SaberBase::LOCKUP_DRAG);
} else {
SaberBase::SetLockup(SaberBase::LOCKUP_NORMAL);
}
swing_blast_ = false;
SaberBase::DoBeginLockup();
return true;
}
break;
Multiple button presses, like a hold of any length and a click - the switch has a primary button, a left, and a right click, setup as power, aux, aux2. I want to have a trigger for moving the switch over to one of the aux positions and then clicking power, but for whatever reason everything i try seems to fail.