0

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++ ?

  • 1
    There's no mathematicall equation. You just have some tedious programming to do. – john Jul 27 '20 at 05:35
  • There might be some repositories on github already done it and you may take it as an reference. – Louis Go Jul 27 '20 at 05:37
  • @LouisGo can you share some links I searched so much – Mohmmed Alaa Jul 27 '20 at 13:34
  • I use keyword "scan code to ascii conversion github" on google and there are [some results](https://www.google.com/search?sxsrf=ALeKk03gzsfvZZ0jJtDxC9zt47x-VOyIxQ%3A1595895834020&ei=GnAfX5dtmJGvvA_s2anoAw&q=scan+code+to+ascii+conversion+github&oq=scan+code+to+ascii+conversion+github&gs_lcp=CgZwc3ktYWIQAzoECCMQJzoECAAQHjoFCCEQoAE6BwghEAoQoAFQkeACWO_3AmCV-QJoBHAAeACAAT2IAfoEkgECMTKYAQCgAQGqAQdnd3Mtd2l6wAEB&sclient=psy-ab&ved=0ahUKEwiX4qOi1-7qAhWYyIsBHexsCj0Q4dUDCAw&uact=5) – Louis Go Jul 28 '20 at 00:25

0 Answers0