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

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Pordrack
Prole
Posts: 13
Joined: Tue Sep 04, 2018 5:23 pm

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

Post 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.
User avatar
pgimeno
Party member
Posts: 3593
Joined: Sun Oct 18, 2015 2:58 pm

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

Post 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)
Last edited by pgimeno on Sun May 17, 2020 6:33 pm, edited 1 time in total.
User avatar
Pordrack
Prole
Posts: 13
Joined: Tue Sep 04, 2018 5:23 pm

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

Post by Pordrack »

Thanks a lot
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests