fix syntax

This commit is contained in:
2026-02-17 09:15:15 -06:00
parent f310c18b84
commit 4e1b63fd0e
52 changed files with 2169 additions and 1754 deletions

View File

@@ -22,13 +22,15 @@ function parse_mods(mod) {
// Translate SDL event to canonical format
// Returns canonical event or null if not translatable
function translate(evt) {
var control = null
// Keyboard
if (evt.type == 'key_down' || evt.type == 'key_up') {
if (evt.repeat) return null // Ignore key repeats
var control = keycode_to_control(evt.key)
control = keycode_to_control(evt.key)
if (!control) return null
return {
kind: 'button',
device_id: 'kbm',