An another touchup.

This commit is contained in:
Relintai 2022-06-12 15:25:33 +02:00
parent db18d2b5b2
commit e4ef99abc4
2 changed files with 5 additions and 2 deletions

View File

@ -17,7 +17,7 @@ void SlopePoint::set_moving(const bool val) {
moving = val;
}
void SlopePoint::_on_ControlPoint_gui_input(const Variant &event) {
void SlopePoint::_on_ControlPoint_gui_input(const Ref<InputEvent> &event) {
Ref<InputEventMouseButton> iemb = event;
Ref<InputEventMouseMotion> iemm = event;

View File

@ -1,6 +1,9 @@
#ifndef SLOPE_POINT_H
#define SLOPE_POINT_H
#include "core/math/vector2.h"
#include "core/os/input_event.h"
#include "scene/gui/control.h"
class SlopePoint : public Control {
@ -13,7 +16,7 @@ public:
Variant get_moving();
void set_moving(const bool val);
void _on_ControlPoint_gui_input(const Variant &event);
void _on_ControlPoint_gui_input(const Ref<InputEvent> &event);
SlopePoint();
~SlopePoint();