SDL Polling Events

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
Guest

SDL Polling Events

Post 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.
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Post 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
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
Guest

Post by Guest »

woot! Thanks!
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Post 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)
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
Post Reply