首页 > 解决方案 > 如何将普通扫描码翻译成 ascii 字符

问题描述

我需要将这些扫描代码转换为 ascii 章程。

在本站: 1.4 普通扫描码

例如 :

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

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

是否有任何数学方程可以转换它或如何在 C++ 中构建 translate_keys() 函数?

标签: c++encryptionkeyboardscancodes

解决方案


推荐阅读