I want to have all my input from the keyboard, mouse, and joystick stored in one object. Using the book as an example, the object would have six member variables for mMoveLeft, mMoveRight, mMoveUp, mMoveDown, mFire, and mLaunchMissile. Each of these member variables should than correspond to a key, button, analog pad, etc. on a specific input device depending on its binding.
The issue I am having is storing events for the keyboard, mouse, and joystick, which are all of different types, into this singular object. My shoving the keyboard and mouse into a large enum and then cramming it into mKeybinding was a quick and dirty attempt of this. However, I am sure there is a better approach.
The reason I would like to do this is I want a uniform object to read for both the player and the AI (reading Game Coding Complete). On a slightly unrelated note are there any game engine books you would recommend?