MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ddio_AsciiToKey

Function ddio_AsciiToKey

ddio/key.cpp:486–496  ·  view source on GitHub ↗

converts ascii code to key

Source from the content-addressed store, hash-verified

484
485// converts ascii code to key
486int ddio_AsciiToKey(int ascii) {
487 if (ascii < 0 || ascii >= 128)
488 return 0;
489
490 if (ascii >= 'A' && ascii <= 'Z') {
491 // I'm lazy
492 return (SHK + keycode_table[ascii]);
493 } else {
494 return keycode_table[ascii];
495 }
496}

Callers 1

BuddyDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected