diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-11 11:20:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 11:20:45 +0200 |
commit | c00303ff55f2a67d5cb1a031070e3b1fe7b15a9e (patch) | |
tree | 41c169c558961c715283d70822a703bd0a7c0706 /editor/plugins/node_3d_editor_plugin.cpp | |
parent | a902f760634432adcb5f74b3b6cd27a7275a320f (diff) | |
parent | fa3a32a2d6b054543645b0d4752514c90732b935 (diff) |
Merge pull request #47378 from aaronfranke/use-input-enums
Use key enum instead of plain integers for input code
Diffstat (limited to 'editor/plugins/node_3d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 7acf5c2013..7e143241f3 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -2457,7 +2457,7 @@ static bool is_shortcut_pressed(const String &p_path) { return false; } const Input &input = *Input::get_singleton(); - int keycode = k->get_keycode(); + Key keycode = k->get_keycode(); return input.is_key_pressed(keycode); } |