Re: SDL, keyboard and event handling
- Posted by ChrisB (moderator) Nov 01, 2022
- 1206 views
petelomax said...
ChrisB said...
return scancode
I'd expect that to die with "variable scancode has not been assigned a value"
No, scancode = i
petelomax said...
ChrisB said...
atom ev = 0
Neither of these work
I'd expect that to stay 0 forever
and it does, except SDL_WaitEvent(ev) and SDL_PollEvent(ev) should make ev a pointer to the event structure.
Chris