Merge pull request #8074 from Hinsbart/bind_parse_ev_3
Input: bind parse_input_event()
This commit is contained in:
commit
6e476f8733
@ -83,6 +83,7 @@ void Input::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("action_press", "action"), &Input::action_press);
|
ClassDB::bind_method(D_METHOD("action_press", "action"), &Input::action_press);
|
||||||
ClassDB::bind_method(D_METHOD("action_release", "action"), &Input::action_release);
|
ClassDB::bind_method(D_METHOD("action_release", "action"), &Input::action_release);
|
||||||
ClassDB::bind_method(D_METHOD("set_custom_mouse_cursor", "image:Texture", "hotspot"), &Input::set_custom_mouse_cursor, DEFVAL(Vector2()));
|
ClassDB::bind_method(D_METHOD("set_custom_mouse_cursor", "image:Texture", "hotspot"), &Input::set_custom_mouse_cursor, DEFVAL(Vector2()));
|
||||||
|
ClassDB::bind_method(D_METHOD("parse_input_event", "event"), &Input::parse_input_event);
|
||||||
|
|
||||||
BIND_CONSTANT(MOUSE_MODE_VISIBLE);
|
BIND_CONSTANT(MOUSE_MODE_VISIBLE);
|
||||||
BIND_CONSTANT(MOUSE_MODE_HIDDEN);
|
BIND_CONSTANT(MOUSE_MODE_HIDDEN);
|
||||||
|
@ -102,6 +102,8 @@ public:
|
|||||||
virtual int get_joy_button_index_from_string(String p_button) = 0;
|
virtual int get_joy_button_index_from_string(String p_button) = 0;
|
||||||
virtual int get_joy_axis_index_from_string(String p_axis) = 0;
|
virtual int get_joy_axis_index_from_string(String p_axis) = 0;
|
||||||
|
|
||||||
|
virtual void parse_input_event(const InputEvent &p_event) = 0;
|
||||||
|
|
||||||
Input();
|
Input();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -201,7 +201,8 @@ public:
|
|||||||
|
|
||||||
virtual void warp_mouse_pos(const Vector2 &p_to);
|
virtual void warp_mouse_pos(const Vector2 &p_to);
|
||||||
|
|
||||||
void parse_input_event(const InputEvent &p_event);
|
virtual void parse_input_event(const InputEvent &p_event);
|
||||||
|
|
||||||
void set_gravity(const Vector3 &p_gravity);
|
void set_gravity(const Vector3 &p_gravity);
|
||||||
void set_accelerometer(const Vector3 &p_accel);
|
void set_accelerometer(const Vector3 &p_accel);
|
||||||
void set_magnetometer(const Vector3 &p_magnetometer);
|
void set_magnetometer(const Vector3 &p_magnetometer);
|
||||||
|
Loading…
Reference in New Issue
Block a user