Godot Version
4.2.1
Question
trying to find relative pos from InputEventScreenDrag event like in gdscript
but i see there is none what are the alternatives ?
void Controls::_unhandled_input(const godot::Ref<godot::InputEvent>& event)
{
if (event->is_class("InputEventScreenDrag"))
{
godot::Ref<godot::InputEventScreenTouch> drag_event = event;
drag_event. ?
}
}
Controls extends godot::CanvasLayer
class Controls : public godot::CanvasLayer
Thanks