diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-01-12 00:12:54 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-01-12 00:12:54 -0300 |
commit | c84d618b4ea944e5c386d21f45265f9cb6fa783e (patch) | |
tree | c2d5b86f098ceff784a003bf83b0bd46e1d38c4b /core/os | |
parent | bfef8de1bc4f7a7b9617a7b181881129033a0b0e (diff) |
Made InputEvent use floating point coordinates.
Diffstat (limited to 'core/os')
-rw-r--r-- | core/os/input_event.h | 12 |
1 files changed, 6 insertions, 6 deletions
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; }; |