You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
renamed _input_event for GUI events to _gui_input, so it's more differentiated than generalized _input
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#include "pane_drag.h"
|
||||
|
||||
|
||||
void PaneDrag::_input_event(const InputEvent& p_input) {
|
||||
void PaneDrag::_gui_input(const InputEvent& p_input) {
|
||||
|
||||
if (p_input.type==InputEvent::MOUSE_MOTION && p_input.mouse_motion.button_mask&BUTTON_MASK_LEFT) {
|
||||
|
||||
@@ -64,7 +64,7 @@ Size2 PaneDrag::get_minimum_size() const {
|
||||
|
||||
void PaneDrag::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method("_input_event",&PaneDrag::_input_event);
|
||||
ClassDB::bind_method("_gui_input",&PaneDrag::_gui_input);
|
||||
ADD_SIGNAL(MethodInfo("dragged",PropertyInfo(Variant::VECTOR2,"amount")));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user