diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-07 17:30:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-07 17:30:44 +0200 |
commit | b5a3aeb8ee87e4ac58c1c695f5f00dbec41a0fc2 (patch) | |
tree | a0c4580f96da160e27bfd694f2dee8614927db87 /test/src/example.cpp | |
parent | c669f0b78a1a046dd2f7c2589b27abd28ab13101 (diff) | |
parent | ad726015e7bb5aaaf6d8f3b98fca2b21bf15c830 (diff) | |
download | redot-cpp-b5a3aeb8ee87e4ac58c1c695f5f00dbec41a0fc2.tar.gz |
Merge pull request #1123 from dsnopek/revert-pr-1044-1045
Revert the changes from PR #1044 and #1045 and standardize on `Object **` encoding in ptrcall
Diffstat (limited to 'test/src/example.cpp')
-rw-r--r-- | test/src/example.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/src/example.cpp b/test/src/example.cpp index 6d24379..e605a45 100644 --- a/test/src/example.cpp +++ b/test/src/example.cpp @@ -348,3 +348,10 @@ bool Example::_has_point(const Vector2 &point) const { return false; } + +void Example::_input(const Ref<InputEvent> &event) { + const InputEventKey *key_event = Object::cast_to<const InputEventKey>(*event); + if (key_event) { + emit_custom_signal(String("_input: ") + key_event->get_key_label(), key_event->get_unicode()); + } +} |