SDL Polling Events
Posted: Fri Jun 24, 2005 9:09 pm
I've decided that as soon as I get my computer back up, I am going to resume my SDL learnage. Before I stopped, I remember having to resort to keyboard arrays, which slow down the program, rather than polling events.
This is because the book I am reading didn't specify what member of the event class holds the SDL key code, so I couldn't check which key was hit.
Would someone please be so kind as to posting a bit of one of their programs that use polling events, or just tell me what member has the SDL key codes? It'd be very much appreciated.
This is because the book I am reading didn't specify what member of the event class holds the SDL key code, so I couldn't check which key was hit.
Would someone please be so kind as to posting a bit of one of their programs that use polling events, or just tell me what member has the SDL key codes? It'd be very much appreciated.