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
This commit is contained in:
parent
5343b581ad
commit
90609476e9
|
|
@ -36,8 +36,8 @@ namespace Nz
|
||||||
struct MouseButtonEvent
|
struct MouseButtonEvent
|
||||||
{
|
{
|
||||||
Mouse::Button button;
|
Mouse::Button button;
|
||||||
unsigned int x;
|
int x;
|
||||||
unsigned int y;
|
int y;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Used by:
|
// Used by:
|
||||||
|
|
@ -46,8 +46,8 @@ namespace Nz
|
||||||
{
|
{
|
||||||
int deltaX;
|
int deltaX;
|
||||||
int deltaY;
|
int deltaY;
|
||||||
unsigned int x;
|
int x;
|
||||||
unsigned int y;
|
int y;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Used by:
|
// Used by:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue