console call with AZERTY keyboard
by Vincent BILLET · in Torque 3D Professional · 06/26/2009 (1:19 am) · 8 replies
in default.bind.cs, I Have the following line :
GlobalActionMap.bind(keyboard, "tilde", toggleConsole);
but pressing ² (for AZERTY french keyboard), doesn't work, no more than pressing ~ (AltGr 2)
So to fix this issue, you should replace in default.bind.cs the previous line of code by this one :
GlobalActionMap.bind(keyboard, "alt j", toggleConsole);
GlobalActionMap.bind(keyboard, "tilde", toggleConsole);
but pressing ² (for AZERTY french keyboard), doesn't work, no more than pressing ~ (AltGr 2)
So to fix this issue, you should replace in default.bind.cs the previous line of code by this one :
GlobalActionMap.bind(keyboard, "alt j", toggleConsole);
#2
This is a peculiar thing. The key actually bound to the console toggle is the backtick (`) and not the tilde key. On a US keyboard, the backtick is right below ESC. Tilde on the other hand is SHIFT+that key. With the US keyboard layout, it does work for both, tough. Still, the scancode for the backtick key is labelled KEY_TILDE within Torque.
06/26/2009 (5:06 am)
This is a peculiar thing. The key actually bound to the console toggle is the backtick (`) and not the tilde key. On a US keyboard, the backtick is right below ESC. Tilde on the other hand is SHIFT+that key. With the US keyboard layout, it does work for both, tough. Still, the scancode for the backtick key is labelled KEY_TILDE within Torque.
#3
@Rene
How do you map the "²" key? so we can use the same key under "esc" as US does.
06/26/2009 (6:35 am)
On french keyboard the default map is on "ù" key.@Rene
How do you map the "²" key? so we can use the same key under "esc" as US does.
#4
should do the trick.
Sometimes I wonder whether it wouldn't make the most sense to allow switching layout-based keycode translation off completely for action maps so that we're mapping directly to scancodes and bindings will stay on the same key regardless of the keyboard layout. This would prevent so many locale-specific problems and avoid having people find shortcuts in arcane places.
06/26/2009 (6:52 am)
GlobalActionMap.bind( keyboard, "super2", toggleConsole );
should do the trick.
Sometimes I wonder whether it wouldn't make the most sense to allow switching layout-based keycode translation off completely for action maps so that we're mapping directly to scancodes and bindings will stay on the same key regardless of the keyboard layout. This would prevent so many locale-specific problems and avoid having people find shortcuts in arcane places.
#5
Ive no idea if things are broken or whether i have to do some twister magic on my keybaord
06/26/2009 (2:04 pm)
Why is this a problem in T3D when it worked fine in TGEA.Ive no idea if things are broken or whether i have to do some twister magic on my keybaord
#7
Remapping to super2 doesn't work for me.
@Luis : tilde is effectively the "ù" key. Thank you... But the "ù" key is just right below the P key... :S (far away from the ESC Key)...
EDIT: When i use option dialog to remap "²" key, it gives me "apostrophe". But this key is not responding at all. It's like "tilde" and "apostrophe" brings to the "ù" key.
06/26/2009 (10:31 pm)
Quote:This is not specific to Torque 3DIt is ! It worked perfectly since my first TGE version (1.3).
Remapping to super2 doesn't work for me.
@Luis : tilde is effectively the "ù" key. Thank you... But the "ù" key is just right below the P key... :S (far away from the ESC Key)...
EDIT: When i use option dialog to remap "²" key, it gives me "apostrophe". But this key is not responding at all. It's like "tilde" and "apostrophe" brings to the "ù" key.
#8
EDIT: if you mean use scan codes, just as an example, scan code 27 (hexadecimal) is OEM_3 ('ç' key) for me, OEM_1 (';' key) for US and 'M' key for french - although they are located on the same place on all 3 keyboards.
@Vincent - yes i have seen images of your keyboard layout on wikipedia trying to find an answer for you. On mine the Tilde maps to the 'ç' key wisch is locaterd next to the 'L' key (where you have 'M' if i recall)
06/29/2009 (6:21 am)
@Renee - actually the key assigned is called OEM_3 and different keyboards assign it to different keys. And i don't know if using keycode would solve it between QWERTY and AZERTY. i think key code 27 for me is the OEM_3 while on french AZERTY is the 'M' (not 100% sure about this though - would need to research this indept) Basicly the driver for the keyboard often translate from AT to XT on these and if you bypass that translation you sould still find some differences on odd keyboards i think.EDIT: if you mean use scan codes, just as an example, scan code 27 (hexadecimal) is OEM_3 ('ç' key) for me, OEM_1 (';' key) for US and 'M' key for french - although they are located on the same place on all 3 keyboards.
@Vincent - yes i have seen images of your keyboard layout on wikipedia trying to find an answer for you. On mine the Tilde maps to the 'ç' key wisch is locaterd next to the 'L' key (where you have 'M' if i recall)
Torque Owner Luis Rodrigues
WinterLeaf Entertainment
US tilde key on my portuguese (latin) qwerty keyboard is actually the ç key.
Had also once a game that mapped the tilde to my key (can't remember wich)
With tilde it should still work on your keyboard - but the code scanned will be to another key that not actually tilde.
All you have to do is figure out wich key on your keyboard has the same code as the tilde key on US keyboards.
You can try key by key pressing (that's how i figured out in quake back in the day). It's tedious but works.
EDIT: According to Microsoft's MSDN tilde would most likly be mapped to the ü keyboard for you. (wich doesn't exist on american or portuguese keyboards by the way)