fix crash for mouse y inversion
This commit is contained in:
@@ -424,10 +424,9 @@ function poll_input() {
|
||||
ev.key = input.keyname(ev.key)
|
||||
}
|
||||
|
||||
if (ev.type.startsWith('mouse_'))
|
||||
if (ev.type.startsWith('mouse_') && ev.pos && ev.pos.y)
|
||||
ev.pos.y = -ev.pos.y + logical.height
|
||||
}
|
||||
|
||||
input_cb(evs)
|
||||
})
|
||||
$_.delay(poll_input, input_rate)
|
||||
|
||||
Reference in New Issue
Block a user