summaryrefslogtreecommitdiff
path: root/core/input/input.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-11 11:20:45 +0200
committerGitHub <noreply@github.com>2021-08-11 11:20:45 +0200
commitc00303ff55f2a67d5cb1a031070e3b1fe7b15a9e (patch)
tree41c169c558961c715283d70822a703bd0a7c0706 /core/input/input.cpp
parenta902f760634432adcb5f74b3b6cd27a7275a320f (diff)
parentfa3a32a2d6b054543645b0d4752514c90732b935 (diff)
Merge pull request #47378 from aaronfranke/use-input-enums
Use key enum instead of plain integers for input code
Diffstat (limited to 'core/input/input.cpp')
-rw-r--r--core/input/input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/input/input.cpp b/core/input/input.cpp
index c205726b0a..2da50b7dff 100644
--- a/core/input/input.cpp
+++ b/core/input/input.cpp
@@ -221,7 +221,7 @@ Input::SpeedTrack::SpeedTrack() {
reset();
}
-bool Input::is_key_pressed(int p_keycode) const {
+bool Input::is_key_pressed(Key p_keycode) const {
_THREAD_SAFE_METHOD_
return keys_pressed.has(p_keycode);
}