diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-10-30 06:18:40 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-10-30 06:18:40 +1100 |
commit | fe2a8038d5b04bdca618edf5ae673bda7017149a (patch) | |
tree | f2bdb0ca975598e6f1d95520c030710c1f032697 | |
parent | b2a5bd00fb1d7531591a1074a8571b5ae566f0dd (diff) |
mouseWheel in input.events() matches SE now
-rw-r--r-- | source/game/StarInput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<MouseWheelEvent>()) { 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<MouseMoveEvent>()) { |