From fe2a8038d5b04bdca618edf5ae673bda7017149a Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 30 Oct 2023 06:18:40 +1100 Subject: [PATCH] mouseWheel in input.events() matches SE now --- source/game/StarInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/game/StarInput.cpp b/source/game/StarInput.cpp index 7f0c09c..5629049 100644 --- a/source/game/StarInput.cpp +++ b/source/game/StarInput.cpp @@ -113,7 +113,7 @@ Json Input::inputEventToJson(InputEvent const& input) { } else if (auto mouseWheel = input.ptr()) { type = "MouseWheel"; data = JsonObject{ - {"mouseWheel", MouseWheelNames.getRight(mouseWheel->mouseWheel)}, + {"mouseWheel", mouseWheel->mouseWheel == MouseWheel::Up ? 1 : -1}, {"mousePosition", jsonFromVec2I(mouseWheel->mousePosition)} }; } else if (auto mouseMove = input.ptr()) {