You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
This commit is contained in:
@@ -728,7 +728,7 @@ void WebXRInterfaceJS::_update_input_source(int p_input_source_id) {
|
||||
Vector2 delta = position - touches[touch_index].position;
|
||||
|
||||
// If position has changed by at least 1 pixel, generate a drag event.
|
||||
if (abs(delta.x) >= 1.0 || abs(delta.y) >= 1.0) {
|
||||
if (std::abs(delta.x) >= 1.0 || std::abs(delta.y) >= 1.0) {
|
||||
Ref<InputEventScreenDrag> event;
|
||||
event.instantiate();
|
||||
event->set_index(touch_index);
|
||||
|
||||
Reference in New Issue
Block a user