You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Use Key enum instead of plain integers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user