summaryrefslogtreecommitdiff
path: root/core/input
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-10-22 17:20:33 +0200
committerGitHub <noreply@github.com>2021-10-22 17:20:33 +0200
commit6c35e742286640cc0ae72f8ce0f243501263edc5 (patch)
tree890bdb6d89c58d09597e3679d0c23d33946ddbfe /core/input
parent9f7218eb69a3a1c09c652e9064573bffd71bdc02 (diff)
parent6dc3fae201574cca599b322d24bb091bd1dbdcbd (diff)
Merge pull request #53812 from RandomShaper/expose_flush_input
Diffstat (limited to 'core/input')
-rw-r--r--core/input/input.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/input/input.cpp b/core/input/input.cpp
index 296aa1f071..c3b43a4274 100644
--- a/core/input/input.cpp
+++ b/core/input/input.cpp
@@ -133,6 +133,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);