diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2021-10-14 18:58:15 +0200 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2021-10-22 14:28:48 +0200 |
commit | 6dc3fae201574cca599b322d24bb091bd1dbdcbd (patch) | |
tree | c8c7fc9fad0e8c4a3a776650156d89702b4d5443 /core/input | |
parent | bf322bacdd99cdb81bd7870b0b196ef01652581c (diff) |
Expose Input::flush_buffered_events()
Diffstat (limited to 'core/input')
-rw-r--r-- | core/input/input.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/input/input.cpp b/core/input/input.cpp index f9a361c761..8d518ef6ce 100644 --- a/core/input/input.cpp +++ b/core/input/input.cpp @@ -129,6 +129,7 @@ void Input::_bind_methods() { ClassDB::bind_method(D_METHOD("set_custom_mouse_cursor", "image", "shape", "hotspot"), &Input::set_custom_mouse_cursor, DEFVAL(CURSOR_ARROW), DEFVAL(Vector2())); ClassDB::bind_method(D_METHOD("parse_input_event", "event"), &Input::parse_input_event); ClassDB::bind_method(D_METHOD("set_use_accumulated_input", "enable"), &Input::set_use_accumulated_input); + ClassDB::bind_method(D_METHOD("flush_buffered_events"), &Input::flush_buffered_events); BIND_ENUM_CONSTANT(MOUSE_MODE_VISIBLE); BIND_ENUM_CONSTANT(MOUSE_MODE_HIDDEN); |