mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-08-28 05:45:30 -05:00
ButtonComboAPI: Add support for more wiimote buttons
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user