diff options
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; }; |