mouseWheel in input.events() matches SE now

This commit is contained in:
Kae 2023-10-30 06:18:40 +11:00
parent b2a5bd00fb
commit fe2a8038d5

View File

@ -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>()) {