User manual

F4-BMS 2.0 Technical Manual
In the above code fragment, each of the “call()” invokes the function to send the keystroke that
is mapped to the function that places the game’s HSI mode knob in the corresponding position.
The above code works well for a knob that is wired with four switch closure positions that are
mutually exclusive, one per placement of the physical knob. However, given the discrete
commands, it should be possible to make controller code that matches most wiring scheme
choices.
Modifying the Keystroke Mapping File
There is an excellent tutorial on adding new keystroke entries to the keystroke.key file in the
Falcon4\config directory at Frugal’s World:
http://www.frugalsworld.com/falcon4/keyboard.shtml
Please refer to that source for instructions on modifying the .key file to introduce new or different
key mappings.
The one piece of critical information missing from this tutorial is a list of the hex codes that are
used to “name” the keys in the .key file. The following table describes all the keytop names
recognized by the current game engine.
Key Name Decimal encoding Hex Encoding
ESCAPE 1 0x01
1 2 0x02
2 3 0x03
3 4 0x04
4 5 0x05
5 6 0x06
6 7 0x07
7 8 0x08
8 9 0x09
9 10 0x0A
0 11 0x0B
MINUS 12 0x0C
EQUALS 13 0x0D
BACK 14 0x0E
TAB 15 0x0F
91