Use Key enum instead of plain integers
This commit is contained in:
parent
18bd0fee5a
commit
fa3a32a2d6
43 changed files with 173 additions and 102 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue