1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Made InputEvent use floating point coordinates.

This commit is contained in:
Juan Linietsky
2017-01-12 00:12:54 -03:00
parent bfef8de1bc
commit c84d618b4e
2 changed files with 12 additions and 12 deletions

View File

@@ -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;
};