Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ghcr.io/wiiu-env/devkitppc:20241128

COPY --from=ghcr.io/wiiu-env/libbuttoncombo:20241231-a2f949b /artifacts $DEVKITPRO
COPY --from=ghcr.io/wiiu-env/libbuttoncombo:20250104-0663ede /artifacts $DEVKITPRO
COPY --from=ghcr.io/wiiu-env/libfunctionpatcher:20241012 /artifacts $DEVKITPRO
COPY --from=ghcr.io/wiiu-env/wiiumodulesystem:20240424 /artifacts $DEVKITPRO

Expand Down
16 changes: 16 additions & 0 deletions source/ButtonComboManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,22 @@ namespace {
conv_buttons |= BCMPAD_BUTTON_MINUS;
}

if (buttons & WPAD_BUTTON_1) {
conv_buttons |= BCMPAD_BUTTON_1;
}

if (buttons & WPAD_BUTTON_2) {
conv_buttons |= BCMPAD_BUTTON_2;
}

if (buttons & WPAD_BUTTON_C) {
conv_buttons |= BCMPAD_BUTTON_C;
}

if (buttons & WPAD_BUTTON_Z) {
conv_buttons |= BCMPAD_BUTTON_Z;
}

return conv_buttons;
}

Expand Down
3 changes: 1 addition & 2 deletions source/ButtonComboManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ class ButtonComboManager {

static std::optional<std::shared_ptr<ButtonComboInfoIF>> CreateComboInfo(const ButtonComboModule_ComboOptions &options, ButtonComboModule_Error &err);

ButtonComboInfoIF *GetComboInfoForHandle(ButtonComboModule_ComboHandle handle) const;
[[nodiscard]] ButtonComboInfoIF *GetComboInfoForHandle(ButtonComboModule_ComboHandle handle) const;

void UpdateInputVPAD(VPADChan chan, const VPADStatus *buffer, uint32_t bufferSize, const VPADReadError *error);

void UpdateInputWPAD(WPADChan chan, WPADStatus *data);

bool hasActiveComboWithTVButton();


ButtonComboModule_ComboStatus CheckComboStatus(const ButtonComboInfoIF &other);

void AddCombo(std::shared_ptr<ButtonComboInfoIF> newComboInfo, ButtonComboModule_ComboHandle &outHandle, ButtonComboModule_ComboStatus &outStatus);
Expand Down
1 change: 0 additions & 1 deletion source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ WUMS_INITIALIZE() {
}
DEBUG_FUNCTION_LINE("Patch ButtonComboModule functions finished");


gButtonComboManager = std::make_unique<ButtonComboManager>();

deinitLogging();
Expand Down