   Newb Question bout input
  Well, this is a real newb question, but after searching and searching, and refering to quite a few books, I can't seem to figure this out.  I'm writing a little input system and write now, I've got a map with direct input keys assigned to LUA scripts.  The solution is working alright, except that I don't want such a scripting overhead, I don't want a script for every key especially considering a lot of them just call a c++ function.  I thought about using function pointers, but I can't use a static function for this, and I can't use a function that is derived from another class, this is to limited for me.  Can anyone tell me a good method for mapping a dinput key to a function??   
boost::function? It is a more generic function-pointer-ish library, which, perhaps when coupled with boost::bind, will allow you to use pointer-to-member-functions and pointers to free functions in the same way.   ;  wow,I knew it was a newb ?, thanks for such a quick reply, this is everything I needed :)   ;  ok, got this working, my next question is this, I need to get these key values, and functions from an external file.  I'm parsing the information, but I'm getting the function as a string.  How do I go about converting this over to a function, do I have to run this string through a bunch of conditional statments, or is there a better way to do this?   ;  You are getting the entire text of the function from the file, or just the function name?   ;  just the function name like this:DIK_ESCAPE = KillApp   ;  Then you need to do comparisons between the name of the function read in and a list of names of known functions. However, there is a better way to do this than using a string of if...else - you should use something like this to store the translation from name to function object:std::map<std::string, boost::function...>