Page 1 of 1

Keyset mapped to QWERTY keyboard

Posted: Thu May 13, 2010 1:06 pm
by PowerWyrm
... and with my AZERTY keyboard, the game is simply unplayable :(

I remember having this issue when implementing the SDL port for my MAngband variant. When implementing keysets, I had to use unicode mappings instead of key mappings to get rid of the keyboard dependence (and by default it was mapped to a QWERTY keyboard).
Any chance that the same thing happens in T4?

Re: Keyset mapped to QWERTY keyboard

Posted: Thu May 13, 2010 2:04 pm
by Canderel
Is it a laptop keyboard? Because if you have 9 directional arrows, then the rest should be the same... Or what am I missing?

On a laptop keyboard it is obviously very, very hard to play (I've been playing on one)...

Re: Keyset mapped to QWERTY keyboard

Posted: Thu May 13, 2010 2:24 pm
by PowerWyrm
Nope, normal AZERTY keyboard. All game keys are mapped to QWERTY by default. Basically I have to remap some keys (for ex. ctrl-q remapped to ctrl-a to display quest info) to play properly.

Re: Keyset mapped to QWERTY keyboard

Posted: Thu May 13, 2010 3:25 pm
by darkgod
I'm french too (as you know ;> ) and the only keys I have to rebind are the hotkeys

Re: Keyset mapped to QWERTY keyboard

Posted: Thu May 13, 2010 6:51 pm
by PowerWyrm
I suppose you compiled the version you use. I downloaded mine from the location given in the announcement, and it's clearly based on QWERTY keyboard. Strangely, all commands work with the default keymapping except quest menu (ctrl-q) which you access with ctrl-a (so "w" works, but if you go to the "key bindings" menu and press "w", it will display "z" and map the key to "w" with the AZERTY keyboard).

Re: Keyset mapped to QWERTY keyboard

Posted: Thu May 13, 2010 8:18 pm
by darkgod
Compilation has no bearing on it.

The OS sends keypresses to SDL which the game then receives. If you press "q" and the game receives "a" it means either the OS or SDL does one too much convertion :/

Anyway keybinder is there to handle that and since it's permenently saved (and even shared between modules) you wont have to redo it ever