1
General / Customizable controls
« on: March 19, 2012, 09:51:03 pm »
I want to make customizable controls for my game. Currently I'm checking for input in-game using Keyboard::isKeyPressed(). Is it possible to define a Key type variable which would store a keycode defined by the user to use with isKeyPressed() instead of using keycodes like Keyboard::Up, for example? Which function do I use to assign a keycode to that variable? I'm using SFML 2.0.