Original Post
I'm trying to create an event system to make handling user input a lot easier. I've settled on an input class that maps keys to events and then passes an event based on the key pressed to the event handler which then distributes it to the classes that are subscribed to the event. Pretty simple stuff. I'm running into a design issue reguarding tasks and the kernel though. While the input system is a Task it does nothing with the inherited update function. It just sets the function call back when the task starts. The event handler most likely will not make use of an update either. I could queue events and input and then distribute them on update but I'm don't think that gains me anything but consistency. Should I just build these 2 tasks in with the window task since all they need is the Start() method? Should I go ahead an queue the input and events so that they could make use of the Update method? One advantage of that is there is one place to monitor outgoing input and events but is it worth the overhead? Any insight into this issue would be appreciated! Thanks, Tim [Edited by - tstrimp on April 19, 2006 12:32:19 PM]