From d189b0cc29237399ecc077ed58ccc436ee87868c Mon Sep 17 00:00:00 2001 From: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com> Date: Fri, 13 Feb 2026 10:37:28 +0100 Subject: [PATCH] up is not down (#4031) --- src/input/input_mouse.cpp | 2 +- src/sdl_window.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/input_mouse.cpp b/src/input/input_mouse.cpp index 0dc44608b..19daab3d6 100644 --- a/src/input/input_mouse.cpp +++ b/src/input/input_mouse.cpp @@ -85,7 +85,7 @@ void EmulateJoystick(GameController* controller, u32 interval) { } } -constexpr float constant_down_accel[3] = {0.0f, 10.0f, 0.0f}; +constexpr float constant_down_accel[3] = {0.0f, 9.81f, 0.0f}; void EmulateGyro(GameController* controller, u32 interval) { float d_x = 0, d_y = 0; SDL_GetRelativeMouseState(&d_x, &d_y); diff --git a/src/sdl_window.cpp b/src/sdl_window.cpp index 1ee107efe..ae4646de6 100644 --- a/src/sdl_window.cpp +++ b/src/sdl_window.cpp @@ -270,7 +270,7 @@ namespace Frontend { using namespace Libraries::Pad; std::mutex motion_control_mutex; -float gyro_buf[3] = {0.0f, 0.0f, 0.0f}, accel_buf[3] = {0.0f, -9.81f, 0.0f}; +float gyro_buf[3] = {0.0f, 0.0f, 0.0f}, accel_buf[3] = {0.0f, 9.81f, 0.0f}; static Uint32 SDLCALL PollGyroAndAccel(void* userdata, SDL_TimerID timer_id, Uint32 interval) { auto* controller = reinterpret_cast(userdata); std::scoped_lock l{motion_control_mutex};