You've already forked godot
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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user