Browse Source

Bugfix on space character

master
Noah Petherbridge 4 months ago
parent
commit
b4a1979a8b
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      sdl/events.go

+ 1
- 0
sdl/events.go View File

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


Loading…
Cancel
Save