SFML community forums

Help => General => Topic started by: Elgan on February 11, 2012, 10:01:19 pm

Title: Extend keyboard input keys
Post by: Elgan on February 11, 2012, 10:01:19 pm
Hey everyone.

I would like to add some keys, namely the ` key

that's the little one next to the 1 key, `

As I would like it for my console bind, all my keys have a custom bind system, but that key I really miss having for console.
Title: Extend keyboard input keys
Post by: TechRogue on February 11, 2012, 10:33:19 pm
SFML 1.x:
Code: [Select]
sf::Key::Tilde
SFML2:
Code: [Select]
sf::Keyboard::Tilde
Title: Extend keyboard input keys
Post by: Elgan on February 11, 2012, 11:29:47 pm
noo..not the Tilde key

tilde is ~ , unless I'm mistaken ? ill try again.


¬` that key

edit:

ACTUALLY...


Game.AddKeyBind(INPUTTYPE_KEYBOARD,"togglemenu console", sf::Keyboard::Tilde);


Just noticed: sf::Keyboard::Tilde ....is patched to @' on my keyboard.

every other key ive tried maps fine.

sf::Keyboard::Tilde .. shouldn't it be #~...Which is the key to the right.
Title: Extend keyboard input keys
Post by: Laurent on February 12, 2012, 09:36:22 am
Key mapping is not perfect, it will be improved in the future.
Title: Extend keyboard input keys
Post by: Tank on February 12, 2012, 03:17:57 pm
In 2.0? It's even quite buggy at the moment, as many keys are mapped to A (on my machine (QWERTZ, Linux) caps lock and some others; can try it out again if you need the exact keys).