|
|
@ -102,8 +102,7 @@ void Unicode::typeCode(uint32_t unicode) {
|
|
|
|
Key key;
|
|
|
|
Key key;
|
|
|
|
if (::HostOS.os() == hostos::WINDOWS) {
|
|
|
|
if (::HostOS.os() == hostos::WINDOWS) {
|
|
|
|
key = hexToKeysWithNumpad(digit);
|
|
|
|
key = hexToKeysWithNumpad(digit);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
else {
|
|
|
|
|
|
|
|
key = hexToKey(digit);
|
|
|
|
key = hexToKey(digit);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
input();
|
|
|
|
input();
|
|
|
@ -117,8 +116,7 @@ void Unicode::typeCode(uint32_t unicode) {
|
|
|
|
Key key;
|
|
|
|
Key key;
|
|
|
|
if (::HostOS.os() == hostos::WINDOWS) {
|
|
|
|
if (::HostOS.os() == hostos::WINDOWS) {
|
|
|
|
key = hexToKeysWithNumpad(digit);
|
|
|
|
key = hexToKeysWithNumpad(digit);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
else {
|
|
|
|
|
|
|
|
key = hexToKey(digit);
|
|
|
|
key = hexToKey(digit);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
input();
|
|
|
|
input();
|
|
|
@ -163,24 +161,24 @@ __attribute__((weak)) Key hexToKeysWithNumpad(uint8_t hex) {
|
|
|
|
m = Key_Keypad1.keyCode + (hex - 0x1);
|
|
|
|
m = Key_Keypad1.keyCode + (hex - 0x1);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
switch (hex) {
|
|
|
|
switch (hex) {
|
|
|
|
case 0xA:
|
|
|
|
case 0xA:
|
|
|
|
m = Key_A.keyCode;
|
|
|
|
m = Key_A.keyCode;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 0xB:
|
|
|
|
case 0xB:
|
|
|
|
m = Key_B.keyCode;
|
|
|
|
m = Key_B.keyCode;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 0xC:
|
|
|
|
case 0xC:
|
|
|
|
m = Key_C.keyCode;
|
|
|
|
m = Key_C.keyCode;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 0xD:
|
|
|
|
case 0xD:
|
|
|
|
m = Key_D.keyCode;
|
|
|
|
m = Key_D.keyCode;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 0xE:
|
|
|
|
case 0xE:
|
|
|
|
m = Key_E.keyCode;
|
|
|
|
m = Key_E.keyCode;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 0xF:
|
|
|
|
case 0xF:
|
|
|
|
m = Key_F.keyCode;
|
|
|
|
m = Key_F.keyCode;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return { m, KEY_FLAGS };
|
|
|
|
return { m, KEY_FLAGS };
|
|
|
|