API:AddBinding
Aus WARWiki
Adds a new input/activation binding for an action.
Nutzung
AddBinding(action, device, button)
Arguments
* action (number)
- The id of the action you wish to add a binding for. Can also be a string with the action name.
- device (number)
- Which input device this binding is for. Keyboard is generally 1.
- button (number)
- Which button on the device you want to bind to the action.
Diese Funktion gibt keine Werte zurück.
Keyboard button IDs for standard enUS layout
Ranges denoted with ... simply continue from left to right across the keyboard in numerical order. So for instance, 2 to 11 is the number keys 1 through 0.
1 Escape 2 1 ... 11 0 12 - 13 = 14 Backspace 15 Tab 16 Q ... 27 ] 28 Return 29 Left Control 30 A ... 40 '