Page 1 of 1

SDL Polling Events

Posted: Fri Jun 24, 2005 9:09 pm
by Guest
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.

Posted: Sat Jun 25, 2005 11:11 am
by JS Lemming
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

Posted: Sat Jun 25, 2005 11:44 am
by Guest
woot! Thanks!

Posted: Sat Jun 25, 2005 8:51 pm
by JS Lemming
This is really wierd.... that link went to two different locations.. Earlier this morning it went to a tan background site, now it goes to a portugal site, I need an advil. (PS: Advil's really are just like candy... taste so good)