From ae3718921b8ff48a352d55e2f2f42360cf73d3bb Mon Sep 17 00:00:00 2001 From: Nymphea <87930564+NympheaR@users.noreply.github.com> Date: Tue, 10 Sep 2024 01:10:44 +0900 Subject: [PATCH] Fix D++ Dpad button mapping (#480) --- .../Source/Integrations/DppIntegration/DppUtility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SerialPrograms/Source/Integrations/DppIntegration/DppUtility.cpp b/SerialPrograms/Source/Integrations/DppIntegration/DppUtility.cpp index 3c35fde4a..bb1a5d1f6 100644 --- a/SerialPrograms/Source/Integrations/DppIntegration/DppUtility.cpp +++ b/SerialPrograms/Source/Integrations/DppIntegration/DppUtility.cpp @@ -49,8 +49,8 @@ uint16_t Utility::get_button(const uint16_t& bt){ switch (bt){ case 14: dpad = 0; break; // DUP case 15: dpad = 4; break; // DDown - case 16: dpad = 2; break; // DLeft - case 17: dpad = 6; break; // DRight + case 16: dpad = 6; break; // DLeft + case 17: dpad = 2; break; // DRight default: dpad = 0; break; }; return dpad;