Entirely removes BIND_VMETHOD in favor of GDVIRTUAL
* `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
This commit is contained in:
parent
2d446771d6
commit
5cecdfa8af
134 changed files with 359 additions and 410 deletions
|
|
@ -74,9 +74,8 @@ class ViewportRotationControl : public Control {
|
|||
const float AXIS_CIRCLE_RADIUS = 8.0f * EDSCALE;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
void _notification(int p_what);
|
||||
void _gui_input(Ref<InputEvent> p_event);
|
||||
virtual void gui_input(const Ref<InputEvent> &p_event) override;
|
||||
void _draw();
|
||||
void _draw_axis(const Axis2D &p_axis);
|
||||
void _get_sorted_axis(Vector<Axis2D> &r_axis);
|
||||
|
|
@ -470,11 +469,10 @@ private:
|
|||
Vector2 drag_begin_pos;
|
||||
Vector2 drag_begin_ratio;
|
||||
|
||||
void _gui_input(const Ref<InputEvent> &p_event);
|
||||
virtual void gui_input(const Ref<InputEvent> &p_event) override;
|
||||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
void set_view(View p_view);
|
||||
|
|
@ -744,7 +742,7 @@ private:
|
|||
protected:
|
||||
void _notification(int p_what);
|
||||
//void _gui_input(InputEvent p_event);
|
||||
void _unhandled_key_input(Ref<InputEvent> p_event);
|
||||
virtual void unhandled_key_input(const Ref<InputEvent> &p_event) override;
|
||||
|
||||
static void _bind_methods();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue