From c84d618b4ea944e5c386d21f45265f9cb6fa783e Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 12 Jan 2017 00:12:54 -0300 Subject: Made InputEvent use floating point coordinates. --- core/os/input_event.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/os') diff --git a/core/os/input_event.h b/core/os/input_event.h index 3947d86285..1af4ef20c2 100644 --- a/core/os/input_event.h +++ b/core/os/input_event.h @@ -205,8 +205,8 @@ struct InputEventMouse { InputModifierState mod; int button_mask; - int x,y; - int global_x,global_y; + float x,y; + float global_x,global_y; int pointer_index; }; @@ -221,7 +221,7 @@ struct InputEventMouseButton : public InputEventMouse { struct InputEventMouseMotion : public InputEventMouse { - int relative_x,relative_y; + float relative_x,relative_y; float speed_x,speed_y; }; @@ -241,14 +241,14 @@ struct InputEventJoypadButton { struct InputEventScreenTouch { int index; - int x,y; + float x,y; bool pressed; }; struct InputEventScreenDrag { int index; - int x,y; - int relative_x,relative_y; + float x,y; + float relative_x,relative_y; float speed_x,speed_y; }; -- cgit v1.2.3