MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / find_keycode_name

Function find_keycode_name

core/os/keyboard.cpp:452–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452const char *find_keycode_name(Key p_keycode) {
453 const _KeyCodeText *kct = &_keycodes[0];
454
455 while (kct->text) {
456 if (kct->code == p_keycode) {
457 return kct->text;
458 }
459 kct++;
460 }
461
462 return "";
463}
464
465int keycode_get_count() {
466 const _KeyCodeText *kct = &_keycodes[0];

Callers 7

keycode_get_stringFunction · 0.85
find_keycodeFunction · 0.85
as_textMethod · 0.85
Polygon2DEditorMethod · 0.85
_notificationMethod · 0.85
get_tooltipMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected