Increase size of JS keyboard event key/code buffer size
This commit is contained in:
1 parent
764c32fd3e
commit
2beb495140
2 files changed
+4
-4
No files matched your search
@@ -186,8 +186,8 @@ Key_Location :: enum u8 {
|
|||||||
Numpad = 3,
|
Numpad = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
KEYBOARD_MAX_KEY_SIZE :: 16
|
KEYBOARD_MAX_KEY_SIZE :: 32
|
||||||
KEYBOARD_MAX_CODE_SIZE :: 16
|
KEYBOARD_MAX_CODE_SIZE :: 32
|
||||||
|
|
||||||
GAMEPAD_MAX_ID_SIZE :: 64
|
GAMEPAD_MAX_ID_SIZE :: 64
|
||||||
GAMEPAD_MAX_MAPPING_SIZE :: 64
|
GAMEPAD_MAX_MAPPING_SIZE :: 64
|
||||||
|
|||||||
@@ -1548,8 +1548,8 @@ function odinSetupDefaultImports(wasmMemoryInterface, consoleElement, memory) {
|
|||||||
|
|
||||||
wmi.storeInt(off(W, W), e.key.length)
|
wmi.storeInt(off(W, W), e.key.length)
|
||||||
wmi.storeInt(off(W, W), e.code.length)
|
wmi.storeInt(off(W, W), e.code.length)
|
||||||
wmi.storeString(off(16, 1), e.key);
|
wmi.storeString(off(32, 1), e.key);
|
||||||
wmi.storeString(off(16, 1), e.code);
|
wmi.storeString(off(32, 1), e.code);
|
||||||
} else if (e.type === 'scroll') {
|
} else if (e.type === 'scroll') {
|
||||||
wmi.storeF64(off(8, 8), window.scrollX);
|
wmi.storeF64(off(8, 8), window.scrollX);
|
||||||
wmi.storeF64(off(8, 8), window.scrollY);
|
wmi.storeF64(off(8, 8), window.scrollY);
|
||||||
|
|||||||
Reference in new issue
Block a user