v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing v0.31 Talk:Key bindings

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.31"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 6: Line 6:
  
 
::Thanks for the advice!  I tried this but found that String: Backspace was already bound to the key I want to use ("delete" on my Apple keyboard), but it doesn't function that way.  I'll bind another key as a workaround... -- [[User:Maunder|Maunder]] 22:37, 20 November 2010 (UTC)
 
::Thanks for the advice!  I tried this but found that String: Backspace was already bound to the key I want to use ("delete" on my Apple keyboard), but it doesn't function that way.  I'll bind another key as a workaround... -- [[User:Maunder|Maunder]] 22:37, 20 November 2010 (UTC)
 
 
==interface.txt file format==
 
Here's a bit on the file format for those who edit the interface.txt file by hand.
 
 
The file consists of multiple action-keybinding blocks, for example:
 
[BIND:SELECT:REPEAT_NOT]    <-- action
 
[SYM:0:Enter]              <-- keybinding
 
[SYM:0:Numpad Enter]        <-- another keybinding for that action
 
 
The action statements has the following two formats:
 
[BIND:<action>:<repeat>]
 
:'''action''': the code of the action, these should be easy to understand
 
:'''repeat''': determines how often the action is repeated when the key is held down valid values are REPEAT_NOT, REPEAT_SLOW, REPEAT_FAST.
 
The keybinding statements have the following format:
 
*<pre>[KEY:<key>]</pre>
 
::'''key''': the key here is interpreted literally, producing this character will result in the action. For example; an action bind to [KEY:0] is triggered by both, the 0-key in the typewriter block as well as the 0-key on the numpad.
 
*<pre>[SYM:<modifier>:<key>]</pre>
 
::'''modifier''': an integer that represents the combination of <tt>alt</tt>, <tt>ctrl</tt> and <tt>shift</tt>. (note: <tt>AltGr</tt> is interpreted as <tt>ctrl+alt</tt>)
 
::{| border="1"
 
  ! value !! modifier
 
  |-
 
  | 0 || ''no modifier''
 
  |-
 
  | 1 || shift
 
  |-
 
  | 2 || ctrl
 
  |-
 
  | 4 || alt
 
  |}
 
::Modifier values add up, so the value for <tt>shift+ctrl</tt> is 1+2=3.
 
::'''key''': the code for the key. Most keys are spelled out (Enter, Page Down), but not all (ESC). All numpad keys are prefixed by Numpad (Numpad Enter).
 
--[[Special:Contributions/82.169.8.34|82.169.8.34]] 23:18, 2 January 2011 (UTC)
 

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Please sign comments with ~~~~

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)