Key Maps


Each game must have a "Key Map File", which must be stored in its "Game Folder". There are three different files that correspond with different platforms:

"Key Maps" are used to group keys/buttons with a similar purpose, and to provide a central listing of "Raw Keycodes" that can be easily updated even when the key/button is referenced many times throughout multiple scripts.

The best use of Key Maps is to define separate keys for Player 1 and Player 2 that they may each use to trigger the same "Key Events" during their "Movement Modes", or during any other scripted key test.

Any portion of any Script that can reference a Raw Keycode can also reference a Key Map. There are two different methods:

Format Description


Example Key Map File

;;;;;;;;;;;;
;Keymap File
;;;;;;;;;;;;

Number of Maps:              3
Number of Entries per Map:   7
Number of Keys per Entry:    1

Map  0 -     Name:   Player 1
         Entry  0:   Up
           Key  0:  72 ;Arw Up
         Entry  1:   Down
           Key  0:  80 ;Arw Down
         Entry  2:   Left
           Key  0:  75 ;Arw Left
         Entry  3:   Right
           Key  0:  77 ;Arw Right
         Entry  4:   A
           Key  0:  30 ;A
         Entry  5:   B
           Key  0:  31 ;S
         Entry  6:   C
           Key  0:  32 ;D

Map  1 -     Name:   Player 2
         Entry  0:   Up
           Key  0:  23 ;I
         Entry  1:   Down
           Key  0:  37 ;K
         Entry  2:   Left
           Key  0:  36 ;J
         Entry  3:   Right
           Key  0:  38 ;L
         Entry  4:   A
           Key  0:  16 ;Q
         Entry  5:   B
           Key  0:  17 ;W
         Entry  6:   C
           Key  0:  18 ;E

Map  2 -     Name:   Control
         Entry  0:   Start
           Key  0:  28 ;ENTER
         Entry  1:   ???
           Key  0:  30 ;A
         Entry  2:   ???
           Key  0:  31 ;S
         Entry  3:   ???
           Key  0:  32 ;D
         Entry  4:   ID Down
           Key  0:  19 ;R
         Entry  5:   ID Up
           Key  0:  20 ;T
         Entry  6:   Coords
           Key  0:  15 ;TAB