Hey there!
I am still working on my platformer (this week I'll update my project thread!) and wanted to add the option of key remapping. I thought about having some
Keyboard::Key jump
Keyboard::Key moveRight
//...
Then, I'll do Keyboad::isKeyPressed(jump). Then, when the user wants to remap it's just something like this
//..
jump = Keyboard::Escape
//..
or
//..
jump = Event::KeyEvent::code
//..
However, I'm having trouble "drawing" on screen which key represents what. Thing is, for the A-Z is simple. The Key code for A is 0, B is 1 and so on. So, I just add 65 (ascii code) and I'll have the correct letter. However, if the user presses any NUM key, or a slash, I have issues showing that on screen. I just don't know how to translate the key code to the ascii code, unless it's a big switch case (or a bunch of if/else if/else).
EDIT: 2 seconds after I posted it, I stumbled upon this: There is an event called "TextEntered" which gives you the unicode value of the character.
http://www.sfml-dev.org/documentation/2.1/structsf_1_1Event_1_1TextEvent.phpSo, now I am trying to use both "TextEntered" and KeyPressed to use it, and I think that will do.