Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sdf123

Pages: [1]
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.

Pages: [1]