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
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
About the author
#2
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...
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...
#4
09/06/2006 (2:05 pm)
Good idea . thx
#5
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
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
Associate David Higgins
DPHCoders.com
Is this not the case?