From 9f08717e77cd369214dabdda3ea85b6b0e2011a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 5 Oct 2021 09:41:15 +0200 Subject: [PATCH] python: fixed a copypaste error in MouseMoveEvent.relative_position. It returned the same as position, sigh. --- src/python/magnum/platform/application.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/magnum/platform/application.h b/src/python/magnum/platform/application.h index 3671591..3c5e388 100644 --- a/src/python/magnum/platform/application.h +++ b/src/python/magnum/platform/application.h @@ -238,7 +238,7 @@ template void mouseMoveEvent(py::class_& c) c .def_property_readonly("position", &T::position, "Position") - .def_property_readonly("relative_position", &T::position, "Relative position") + .def_property_readonly("relative_position", &T::relativePosition, "Relative position") .def_property_readonly("buttons", [](T& self) { return typename T::Button(typename std::underlying_type::type(self.buttons())); }, "Mouse buttons")