Merge pull request #108 from Danielcodedev/dev
Some checks are pending
Build Linux Release / build-linux (push) Waiting to run

Fix input W - S
This commit is contained in:
Tropical 2026-03-08 23:06:53 -05:00 committed by GitHub
commit e21112a146
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -468,8 +468,8 @@ float C_4JInput::GetJoypadStick_LX(int /*iPad*/, bool /*bCheckMenuDisplay*/) {
float C_4JInput::GetJoypadStick_LY(int /*iPad*/, bool /*bCheckMenuDisplay*/) {
if (!s_mouseLocked) return 0.0f;
float v = 0.0f;
if (KDown(GLFW_KEY_W)) v -= 1.0f; // W = forward = negative Y on consoles
if (KDown(GLFW_KEY_S)) v += 1.0f;
if (KDown(GLFW_KEY_W)) v += 1.0f; // W = forward = negative Y on consoles
if (KDown(GLFW_KEY_S)) v -= 1.0f;
return v;
}