I want to get mouse input using c++. and here's my context:
void CameraManualControl::input(const Ref &event)
{
InputEventMouseMotion* mouseevent = dynamiccast<InputEventMouseMotion*>(constcast<InputEvent*>(event.ptr()));
if (mouse_event)
{...}
}
And I will the error C2027: Used undefined type "godot::InputEvent" at ref.hpp(258)
It means I cannot get InputEvent because of Ref don't know about InputEventMouseMotion.
So How can I get mouse motion using c++?