SFML community forums
Help => Window => Topic started by: ichineko on November 25, 2012, 09:15:56 am
-
Nothing really jumped out at me, but I thought I'd make sure before I start implementing my own solution.
Or, somewhat related, does the event system allow me to generate events? generate a key press that didn't actually happen, for example. I didn't see anything that seemed promising, but I may as well make sure.
-
No and no. But you can use your own event abstraction in which you can push own events. This may also be useful to have callbacks. I implemented such an action system in Thor (tutorial (http://www.bromeon.ch/libraries/thor/v2.0/tutorial-actions.html), doc (http://www.bromeon.ch/libraries/thor/v2.0/doc/classthor_1_1_action_map.html)).
-
Alright, thanks.
I'm just working on a crappy little tetris clone, so I think I'll go the ghetto route and just implement a few flags, lol. Thanks for the suggestion of the eventing system on top of SFML though, I may look into that once I start in on bigger things.