How to translate Ordinary scancodes to ascii charcters

103 views Asked by At

I'm need to convert these scans code to ascii charters.

in this website : 1.4 Ordinary scancodes

for example :

char scan_codes[]={ 0x1e,0x1e,0x1f,0x1f,0x20,0x20 };

char* result = translate_keys(scan_codes);
//output after translation could be      result = "aassdd"

is there any mathematical equation to convert this or how to build translate_keys() function in C++ ?

0

There are 0 answers