Page 1 of 1

One of the important key of the french keyboard isn't recognised.

Posted: Sat May 16, 2020 1:57 pm
by Pordrack
Hello ! I'm french and in France, the number key doesn't actually type numbers unless you hold the shift button, so our "2" key actually types "é", like everyone on the planet, we use this key as a shortcut in MMORPGs, Minecrafts and all kinds of game. However, I'm currently coding a game with remappable buttons and I've noticed that when I try to assign the key "é" to something, it's shown as "unknown" and can't be used while playing. It does the same thing with the keys for "è", "ç" and "à" which corresponds to 7 9 and 0.

Re: One of the important key of the french keyboard isn't recognised.

Posted: Sat May 16, 2020 2:10 pm
by pgimeno
Hi Pordrack, try using love.keyboard.isScancodeDown instead of isDown. Also, if you use the keypressed/keyreleased events, use the scancode parameter (the second one) instead of the key (which is the first).

(edited to fix typo)

Re: One of the important key of the french keyboard isn't recognised.

Posted: Sat May 16, 2020 8:18 pm
by Pordrack
Thanks a lot