|
[A5] Destroying event sources |
BitCruncher
Member #11,279
August 2009
|
Hey guys, Never used A5 before; I installed it literally not over an hour ago, and I'm surprised how quickly I understood the new paradigms. I can't wait to see how it performs. Anyway, when I create a normal event source such as with al_get_keyboard_event_source (), do I need to destroy it afterwards? I see a function for destroying user events, but not this one in particular.
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
You never need to destroy event sources, unless you create them yourself. So if you use al_init_user_event_source, then you need to destroy it with al_destroy_user_event_source when you're done with it. And event sources automagically un-register themselves from event queues when they are destroyed, so you don't need to worry about that. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
RPG Hacker
Member #12,492
January 2011
|
Edgar Reynaldo said: automagically I know it was probably a typo, but I love you for creating that word!
|
RPG Hacker
Member #12,492
January 2011
|
In any case, this goes right into my dictionary!
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
That term was popular here years ago. I simply adopted its use. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
RPG Hacker
Member #12,492
January 2011
|
Seems like I missed some great times. Thanks for explaining! EDIT
|
|