ButtonComboAPI: Add support for more wiimote buttons

This commit is contained in:
Maschell
2025-01-04 13:12:20 +01:00
parent c70306ab6e
commit d327b2d3ca
2 changed files with 26 additions and 2 deletions

View File

@@ -156,6 +156,18 @@ namespace {
if (other & WUPS_BUTTON_COMBO_BUTTON_RESERVED_BIT) {
res |= BCMPAD_BUTTON_RESERVED_BIT;
}
if (other & WUPS_BUTTON_COMBO_BUTTON_1) {
res |= BCMPAD_BUTTON_1;
}
if (other & WUPS_BUTTON_COMBO_BUTTON_2) {
res |= BCMPAD_BUTTON_2;
}
if (other & WUPS_BUTTON_COMBO_BUTTON_C) {
res |= BCMPAD_BUTTON_C;
}
if (other & WUPS_BUTTON_COMBO_BUTTON_Z) {
res |= BCMPAD_BUTTON_Z;
}
return static_cast<ButtonComboModule_Buttons>(res);
}
@@ -215,6 +227,18 @@ namespace {
if (other & BCMPAD_BUTTON_RESERVED_BIT) {
res |= WUPS_BUTTON_COMBO_BUTTON_RESERVED_BIT;
}
if (other & BCMPAD_BUTTON_1) {
res |= WUPS_BUTTON_COMBO_BUTTON_1;
}
if (other & BCMPAD_BUTTON_2) {
res |= WUPS_BUTTON_COMBO_BUTTON_2;
}
if (other & BCMPAD_BUTTON_C) {
res |= WUPS_BUTTON_COMBO_BUTTON_C;
}
if (other & BCMPAD_BUTTON_Z) {
res |= WUPS_BUTTON_COMBO_BUTTON_Z;
}
return static_cast<WUPSButtonCombo_Buttons>(res);
}