Bugfix on space character

master
Noah 2021-01-03 17:04:42 -08:00
padre 6e916169d6
commit b4a1979a8b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados

Ver fichero

@ -168,6 +168,7 @@ func (r *Renderer) Poll() (*event.State, error) {
s.Ctrl = t.State == 1
case sdl.SCANCODE_SPACE:
s.Space = t.State == 1
s.SetKeyDown(" ", t.State == 1 || t.Repeat == 1)
case sdl.SCANCODE_BACKSPACE:
// Make it a key event with "\b" as the sequence.
s.SetKeyDown(`\b`, t.State == 1 || t.Repeat == 1)