Original Post
What is considered an efficient and easy to use method of tracking keyboard and mouse input? I'm using SDL and currently use a long list of bool values to find out what key/mouse button is pressed. The problem with this method is that I have to call extern bool for every key I want to use in that file. I'd like to replace this messy method with a simple function, but can't figure out how to save and recall the information. I could use an array, but the indices themselves would get hard to keep track of. My ideal end result would be something as easy as: bool IsDown('a'); or bool IsDown(MOUSE_LEFT); Any ideas?