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.
SDL Polling Events
Moderator: Coders of Rage
- JS Lemming
- Game Developer
- Posts: 2383
- Joined: Fri May 21, 2004 4:09 pm
- Location: C:\CON\CON
Try going to this reference site, it has everything anyone could ever want to know about SDL... and examples.
http://sdldoc.csn.ul.ie/reference.php
http://sdldoc.csn.ul.ie/reference.php
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
- JS Lemming
- Game Developer
- Posts: 2383
- Joined: Fri May 21, 2004 4:09 pm
- Location: C:\CON\CON