Originally Posted by
Tyluur
If I’m following this right, key codes can’t be changed dynamically with the native client & cache?
Well, jagex has its own key codes table:
Code:
private final void onKeyEvent(KeyEvent keyevent, int i, int keyReleased) {
anInt6538++;
int keyCode = keyevent.getKeyCode();
if (keyCode == 0) {
keyCode = 0;
} else {
if (keyCode >= 0 && Class285_Sub2.keyCodeTable.length > keyCode) {
keyCode = Class285_Sub2.keyCodeTable[keyCode];
if (keyReleased == 0 && (keyCode & 0x80) != 0) {
keyCode = 0;
} else {
keyCode &= ~0x80;
}
} else {
keyCode = 0;
}
}
if (i != keyCode) {
queueKeyboardEvent(keyCode, '\0', keyReleased);
keyevent.consume();
}
}
Since RuneScape is a multi language game, I thought that the reason they have their own key codes table was that not all keyboards share the same key codes. But I'm not sure.