Use Key enum instead of plain integers

This commit is contained in:
Aaron Franke 2021-06-20 13:12:33 -04:00
parent 18bd0fee5a
commit fa3a32a2d6
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
43 changed files with 173 additions and 102 deletions

View file

@ -200,7 +200,7 @@ Variant _EDITOR_DEF(const String &p_setting, const Variant &p_default, bool p_re
Variant _EDITOR_GET(const String &p_setting);
#define ED_IS_SHORTCUT(p_name, p_ev) (EditorSettings::get_singleton()->is_shortcut(p_name, p_ev))
Ref<Shortcut> ED_SHORTCUT(const String &p_path, const String &p_name, uint32_t p_keycode = 0);
Ref<Shortcut> ED_SHORTCUT(const String &p_path, const String &p_name, Key p_keycode = KEY_NONE);
Ref<Shortcut> ED_GET_SHORTCUT(const String &p_path);
#endif // EDITOR_SETTINGS_H