From 90609476e9a725b56498f74af4e77df1aa98944e Mon Sep 17 00:00:00 2001 From: Lynix Date: Wed, 6 Mar 2019 21:17:01 +0100 Subject: [PATCH] Platform/Event: Change mouse absolute position from unsigned to signed Fixes cases where mouse is out of the window by either up or left sides --- include/Nazara/Platform/Event.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/Nazara/Platform/Event.hpp b/include/Nazara/Platform/Event.hpp index ece401890..1fe219e8e 100644 --- a/include/Nazara/Platform/Event.hpp +++ b/include/Nazara/Platform/Event.hpp @@ -36,8 +36,8 @@ namespace Nz struct MouseButtonEvent { Mouse::Button button; - unsigned int x; - unsigned int y; + int x; + int y; }; // Used by: @@ -46,8 +46,8 @@ namespace Nz { int deltaX; int deltaY; - unsigned int x; - unsigned int y; + int x; + int y; }; // Used by: