From ab0f98059edc2e921831e0294d5a3ec72991e068 Mon Sep 17 00:00:00 2001 From: NickGuyver <29263310+NickGuyver@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:35:41 -0700 Subject: [PATCH] bad copy/paste --- src/drivers/switch/SwitchDriver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/switch/SwitchDriver.cpp b/src/drivers/switch/SwitchDriver.cpp index faae2d8ac..1a5b26a11 100644 --- a/src/drivers/switch/SwitchDriver.cpp +++ b/src/drivers/switch/SwitchDriver.cpp @@ -56,9 +56,9 @@ void SwitchDriver::process(Gamepad * gamepad, uint8_t * outBuffer) { | (gamepad->pressedA2() ? SWITCH_MASK_CAPTURE : 0) ; - switchReport.lx = static_cast((gamepad->state.ry + 128) >> 8); - switchReport.ly = static_cast((gamepad->state.ry + 128) >> 8); - switchReport.rx = static_cast((gamepad->state.ry + 128) >> 8); + switchReport.lx = static_cast((gamepad->state.lx + 128) >> 8); + switchReport.ly = static_cast((gamepad->state.ly + 128) >> 8); + switchReport.rx = static_cast((gamepad->state.rx + 128) >> 8); switchReport.ry = static_cast((gamepad->state.ry + 128) >> 8); // Wake up TinyUSB device