fix crash for mouse y inversion

This commit is contained in:
2025-07-26 17:45:26 -05:00
parent fecc4b1285
commit 8ffb4ec73a

View File

@@ -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)