diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-03-19 10:00:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-19 10:00:08 +0100 |
commit | 6e476f87330f58d900c2e2e8556fdfb1bde910ec (patch) | |
tree | aca1d1bd48c26a0198b59246948a562d7315b91d /core/os | |
parent | 7eb8a67025c04e8a72c219944e14432f38ad5135 (diff) | |
parent | a69e449782214c6108303af782c8aa321e5b11ea (diff) |
Merge pull request #8074 from Hinsbart/bind_parse_ev_3
Input: bind parse_input_event()
Diffstat (limited to 'core/os')
-rw-r--r-- | core/os/input.cpp | 1 | ||||
-rw-r--r-- | core/os/input.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/core/os/input.cpp b/core/os/input.cpp index 63efbe4d11..22ca94d449 100644 --- a/core/os/input.cpp +++ b/core/os/input.cpp @@ -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_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("parse_input_event", "event"), &Input::parse_input_event); BIND_CONSTANT(MOUSE_MODE_VISIBLE); BIND_CONSTANT(MOUSE_MODE_HIDDEN); diff --git a/core/os/input.h b/core/os/input.h index 86755e632c..2f6359632e 100644 --- a/core/os/input.h +++ b/core/os/input.h @@ -102,6 +102,8 @@ public: 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 void parse_input_event(const InputEvent &p_event) = 0; + Input(); }; |