Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Question about event handling

Name: Anonymous 2014-06-21 11:42

Let's say I use SDL (1.2 or 2.0) in my program to handle events, should I use callbacks or the good old giant switch statement?

Name: Anonymous 2014-06-22 18:54

>>77
SDL_AddEventWatch
doesn't return and error and /* uh oh */ https://hg.libsdl.org/SDL/file/60edb019f0fe/src/events/SDL_events.c#l496
it also calls every function even if it is not about that event so it has the same problems as using >>28 (something like signal() that has the event as first argument would be better)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List