From 8cbebc12b2b2d0598a130aa704855ceb89507068 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Tue, 9 Aug 2022 18:27:05 -0400 Subject: [PATCH] Disable A/B swap on standard controllers --- lib/input.cpp | 6 +++++- lib/pad.hpp | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 lib/pad.hpp diff --git a/lib/input.cpp b/lib/input.cpp index 910ed01..2679fb4 100644 --- a/lib/input.cpp +++ b/lib/input.cpp @@ -1,9 +1,11 @@ #include "input.hpp" #include "internal.hpp" -#include "pad.hpp" #include "magic_enum.hpp" +#include +#include + #include #include @@ -103,9 +105,11 @@ static std::optional remap_controller_layout(std::string_view mappi entries.insert_or_assign("rightshoulder"sv, "b10"sv); } else if (entries.contains("leftshoulder"sv) && entries.contains("rightshoulder"sv) && entries.contains("back"sv)) { Log.report(LOG_INFO, FMT_STRING("Controller has standard layout")); +#if 0 auto a = entries["a"sv]; entries.insert_or_assign("a"sv, entries["b"sv]); entries.insert_or_assign("b"sv, a); +#endif auto x = entries["x"sv]; entries.insert_or_assign("x"sv, entries["y"sv]); entries.insert_or_assign("y"sv, x); diff --git a/lib/pad.hpp b/lib/pad.hpp deleted file mode 100644 index 1b27e5d..0000000 --- a/lib/pad.hpp +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#include -#include -