I could like to make it flexible enough so that I can do something such as:
keyHandler->Bind(KEYTOBIND, functionToRun);
Then in my while loop:
while(!done)
{
keyHandler->poll();
}
The biggest thing this would need to do, is be able to add multiple functions to one key so that depending on the state of an object(IE mouse being over an object for picking or over an inventory bag) it would execute the proper function.
I'm not even sure if this makes sense to do this way or not, so any ideas would be helpful.












