Open Mariownyou opened 11 months ago
Hi @Mariownyou, since you called sdl.WaitEvent()
you can use the event returned from the function and check whether it is a KeyboardEvent for the Enter or Escape, using a switch case similar to the one used for sdl.PollEvent()
.
Go version: Go-SDL2 version: SDL2 version: OS: mac Architecture: m1
Keyboard events such as Enter or Escape works fine when I don't wait for event. But if i use wait event, I can catch only text input events. moreover, text input events does not appear when I don't use wait for event. @veeableful