You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use "enum class" for input enums
This commit is contained in:
@@ -30,12 +30,12 @@
|
||||
|
||||
#include "android_keys_utils.h"
|
||||
|
||||
unsigned int android_get_keysym(unsigned int p_code) {
|
||||
for (int i = 0; _ak_to_keycode[i].keysym != KEY_UNKNOWN; i++) {
|
||||
Key android_get_keysym(unsigned int p_code) {
|
||||
for (int i = 0; _ak_to_keycode[i].keysym != Key::UNKNOWN; i++) {
|
||||
if (_ak_to_keycode[i].keycode == p_code) {
|
||||
return _ak_to_keycode[i].keysym;
|
||||
}
|
||||
}
|
||||
|
||||
return KEY_UNKNOWN;
|
||||
return Key::UNKNOWN;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user