Game Development Community

Azerty instead of qwerty keyboard

by Gbande-gbato Dan · in Torque Game Builder · 09/02/2006 (12:41 am) · 5 replies

Hi,
i'm new (2 days) on TGB.
got a prblm: i don' t know how to do to have an "azerty" keyboard while using bindCmd method
i use an azerty instead of a qwerty keyboard
thx for answering me

#1
09/02/2006 (10:22 pm)
@Gbande, my understanding is that an azerty and qwerty keyboard only differ in the position of the keys, not the actual keycodes that get sent.

Is this not the case?
#2
09/04/2006 (3:29 pm)
Hi David, please call me dan (;-))
for example in this code from shooter tutorial:

moveMap.bindCmd(keyboard, "w", "pShipUp();", "pShipUpStop();");

I must use the "z" key on my azerty keyboard. When i change "w" to "z" like :

moveMap.bindCmd(keyboard, "z", "pShipUp();", "pShipUpStop();");

I must use "w" key to have it work.

and the funny thing is on the console: "w" key gives w and "z" ky gives z...
#3
09/04/2006 (4:30 pm)
Until someone posts a fix for this, I would suggest choosing keys that are in the same place on both keyboard layouts. This page shows multiple versions.

At a guess, I would say that picking keys two places to the right of the ones you wanted to use should work.
#4
09/06/2006 (2:05 pm)
Good idea . thx
#5
11/19/2006 (6:53 pm)
Not timely advice by any means (I just started using the demo yesterday, and ran into the same issue due to the fact that I use the dvorak keyboard layout).

Compare the two layouts on the wikipedia link above, and find the key on your layout that is in the same place as the key you want to use on the qwerty layout, and use that for the key binding. So for you to define 'z', bind the action to '<'.

I haven't tested it rigorously, but it seems to work for me so far.

Good luck :)

Edit: Punctuation mappings seem to behave strangely... not sure exactly how to deal with that yet, but if I figure it out, I'll definitely post.

James