fix syntax
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user