Discretion in PlayerInput updates
1 files changed, 5 insertions(+), 1 deletions(-) M starkingdoms-client/src/hub.ts
M starkingdoms-client/src/hub.ts => starkingdoms-client/src/hub.ts +5 -1
@@ 78,7 78,11 @@ export async function hub_connect( // input document.onkeydown = (e) => { // currently, input packet is sent on any key down. fix that // Exit if key is not registered. // If adding a handler, add key sym to this array let inputKeys = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"]; if (inputKeys.indexOf(e.key) == -1) return; if (e.key == "ArrowUp" || e.key == "w") { global.up = true; }