diff options
| author | Juan Linietsky | 2017-01-12 00:12:54 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-12 00:12:54 -0300 |
| commit | c84d618b4ea944e5c386d21f45265f9cb6fa783e (patch) | |
| tree | c2d5b86f098ceff784a003bf83b0bd46e1d38c4b /core/variant_op.cpp | |
| parent | bfef8de1bc4f7a7b9617a7b181881129033a0b0e (diff) | |
| download | godot-c84d618b4ea944e5c386d21f45265f9cb6fa783e.tar.gz godot-c84d618b4ea944e5c386d21f45265f9cb6fa783e.tar.zst godot-c84d618b4ea944e5c386d21f45265f9cb6fa783e.zip | |
Diffstat (limited to 'core/variant_op.cpp')
| -rw-r--r-- | core/variant_op.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/variant_op.cpp b/core/variant_op.cpp index 3924d3af7..50f0b9671 100644 --- a/core/variant_op.cpp +++ b/core/variant_op.cpp @@ -2836,18 +2836,18 @@ void Variant::get_property_list(List<PropertyInfo> *p_list) const { if (ie.type==InputEvent::MOUSE_MOTION || ie.type==InputEvent::MOUSE_BUTTON) { p_list->push_back( PropertyInfo(Variant::INT,"button_mask") ); - p_list->push_back( PropertyInfo(Variant::INT,"x") ); - p_list->push_back( PropertyInfo(Variant::INT,"y") ); + p_list->push_back( PropertyInfo(Variant::REAL,"x") ); + p_list->push_back( PropertyInfo(Variant::REAL,"y") ); p_list->push_back( PropertyInfo(Variant::VECTOR2,"pos") ); - p_list->push_back( PropertyInfo(Variant::INT,"global_x") ); - p_list->push_back( PropertyInfo(Variant::INT,"global_y") ); + p_list->push_back( PropertyInfo(Variant::REAL,"global_x") ); + p_list->push_back( PropertyInfo(Variant::REAL,"global_y") ); p_list->push_back( PropertyInfo(Variant::VECTOR2,"global_pos") ); if (ie.type==InputEvent::MOUSE_MOTION) { - p_list->push_back( PropertyInfo(Variant::INT,"relative_x") ); - p_list->push_back( PropertyInfo(Variant::INT,"relative_y") ); + p_list->push_back( PropertyInfo(Variant::REAL,"relative_x") ); + p_list->push_back( PropertyInfo(Variant::REAL,"relative_y") ); p_list->push_back( PropertyInfo(Variant::VECTOR2,"relative_pos") ); p_list->push_back( PropertyInfo(Variant::REAL,"speed_x") ); p_list->push_back( PropertyInfo(Variant::REAL,"speed_y") ); |
