Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Key binding and AZERTY keyboard  (Read 5776 times)

NLS le pingouin

  • Escaped Lunatic
    • View Profile
Key binding and AZERTY keyboard
« on: September 19, 2010, 11:32:05 am »

Hello.
First of all, I'm French. I use a AZERTY keyboard.
Azerty vs Qwerty

I haven't played DF for a couple of years. I was used to change my key binding so it fits with my keyboard. I am trying to do that again, but it seems that their is a couple of changes in the game that makes something impossible to me.
For changing the view in the Z-level I was using my '<' and '>' key (bottom left of my keyboard). I had to change the key binding for that.
But when I tryed to do that again, I use the 'k' key to change the binding but nothing appened when I use the '<' or '>' key. I cannot use those couple of key, but the others work with no problem.

How can I go through this problem? I tryed to use other keys, but I can't afford it. I really WANT to uses those.

Thank you for helping and please excuse my bad english.
Logged

ledgekindred

  • Bay Watcher
  • Oh Boy, Microcline
    • View Profile
Re: Key binding and AZERTY keyboard
« Reply #1 on: September 19, 2010, 12:47:59 pm »

You are probably going to have to spend some time manually editing the data/init/interface.txt file to get at least the basic keys working.  After that, go into the Key Bindings menu and tweak.  Then go back into the interface.txt for those values and double-check that there are no conflicts and that the keys are correctly defined. 

Make a backup of your interface.txt just in case.

I wish I had an easier solution. I'm on a mac laptop so initially some of the key mappings don't work at all.  This is pretty much what I have to do since I can't even go into the Key Mappings menu until manually editing the file. 
 
Logged
I don't understand, though that is about right with anything DF related.
I just hope he dies the same death that all dwarfs deserve: liver disease.
The legend of Reg: http://www.bay12forums.com/smf/index.php?topic=65866.0
Atir Stigildegel, Legless Hero of Diamondrelic: http://www.bay12forums.com/smf/index.php?topic=83136.0

Socializator

  • Bay Watcher
    • View Profile
    • Dwarf Fortress CZ
Re: Key binding and AZERTY keyboard
« Reply #2 on: September 20, 2010, 07:31:15 am »

Being czech, I have a QWERTZ keyboard - http://cs.wikipedia.org/wiki/Soubor:Qwertz_cz.svg
which doesnt have < >  as well...
What I have been doing for years now, is having both EN and CZ keyboard profiles installed in windows. so I can switch between them via ALT-SHIFT. So I am playing DF with english layout, while I still have CZ keyboard elsewhere whenever I need it...
I know it is not exactly what you have asked for, but so many other program(er)s are ignorant to internationalizations, that having EN keyboard layout is almost a must if you want to control programs smoothly
Logged
Navštivte českou Dwarf Fortress komunitu a fanpage!

hypercube

  • Escaped Lunatic
    • View Profile
Re: Key binding and AZERTY keyboard
« Reply #3 on: January 04, 2018, 07:10:35 pm »

This is an old post but the first returned by Google about AZERTY issues.

On DF 0.44.03, this is the change I did for the key movement uhkm, that I now remap to uhk, (that is a comma instead of m).

The diff for file df_linux/data/init/interface.txt:

Code: [Select]
diff --git a/df_linux/data/init/interface.txt b/df_linux/data/init/interface.txt
index efe4622..9246a35 100644
--- a/df_linux/data/init/interface.txt
+++ b/df_linux/data/init/interface.txt
@@ -961,7 +961,7 @@
 [BIND:SETUP_LOCAL_Y_MUP:REPEAT_SLOW]
 [KEY:u]
 [BIND:SETUP_LOCAL_Y_MDOWN:REPEAT_SLOW]
-[KEY:m]
+[KEY:,]
 [BIND:SETUP_LOCAL_X_MUP:REPEAT_SLOW]
 [KEY:k]
 [BIND:SETUP_LOCAL_X_MDOWN:REPEAT_SLOW]
@@ -1412,7 +1412,7 @@
 [BIND:BUILDING_DIM_Y_UP:REPEAT_NOT]
 [KEY:u]
 [BIND:BUILDING_DIM_Y_DOWN:REPEAT_NOT]
-[KEY:m]
+[KEY:,]
 [BIND:BUILDING_DIM_X_UP:REPEAT_NOT]
 [KEY:k]
 [BIND:BUILDING_DIM_X_DOWN:REPEAT_NOT]
Logged

IT 000

  • Bay Watcher
  • Strange Mood
    • View Profile
Re: Key binding and AZERTY keyboard
« Reply #4 on: January 06, 2018, 09:36:29 pm »

"Old post"? This post is old enough to be learning multiplication.
Logged

***CORROSION v2.14***
<<<More Than Just Zombies>>>
Back from the Dead!

Shonai_Dweller

  • Bay Watcher
    • View Profile
Re: Key binding and AZERTY keyboard
« Reply #5 on: January 06, 2018, 09:53:47 pm »

"Old post"? This post is old enough to be learning multiplication.
It's not like there's been any more recent threads with information on irregular keyboards...
Logged