Support Linux Wii controller mappings (#309)

* Support Linux Wii controller mappings

* read kernel remote buttons and pair classic node
This commit is contained in:
patchzyy
2026-10-18 15:15:14 +02:00
committed by GitHub
parent 8676d1ab14
commit 3ff14738bd
3 changed files with 212 additions and 40 deletions
+6
View File
@@ -798,6 +798,12 @@ void DrawControllerSettings() {
ImGui::EndMenu();
}
if (WiiRemoteInput::IsRemoteChannel(selectedGamePort)) {
ImGui::TextDisabled("The game reads this controller as a Wii Remote, so the button mapping does not apply.");
DrawRumbleSettings();
return;
}
uint32_t mappingCount = 0;
PADButtonMapping* mappings = PADGetButtonMappings(static_cast<uint32_t>(g_controllerPort), &mappingCount);
if (mappings == nullptr || mappingCount != PAD_BUTTON_COUNT) {