mouseWheel in input.events() matches SE now
This commit is contained in:
parent
b2a5bd00fb
commit
fe2a8038d5
@ -113,7 +113,7 @@ Json Input::inputEventToJson(InputEvent const& input) {
|
|||||||
} else if (auto mouseWheel = input.ptr<MouseWheelEvent>()) {
|
} else if (auto mouseWheel = input.ptr<MouseWheelEvent>()) {
|
||||||
type = "MouseWheel";
|
type = "MouseWheel";
|
||||||
data = JsonObject{
|
data = JsonObject{
|
||||||
{"mouseWheel", MouseWheelNames.getRight(mouseWheel->mouseWheel)},
|
{"mouseWheel", mouseWheel->mouseWheel == MouseWheel::Up ? 1 : -1},
|
||||||
{"mousePosition", jsonFromVec2I(mouseWheel->mousePosition)}
|
{"mousePosition", jsonFromVec2I(mouseWheel->mousePosition)}
|
||||||
};
|
};
|
||||||
} else if (auto mouseMove = input.ptr<MouseMoveEvent>()) {
|
} else if (auto mouseMove = input.ptr<MouseMoveEvent>()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user