Appearance
set_button
Version: Dink Freedink DinkHD YeDink
Prototypevoid set_button(int button, int function)
set_button() will set the specified button to act as a certain function. It is used in the escape.c script in most D-Mods, but it is unlikely that many people change their joystick/gamepad buttons every time they start the game.
| Function | Function name | Default button assignment |
|---|---|---|
| 1 | Attack | Button 1 |
| 2 | Talk/look | Button 2 |
| 3 | Magic | Button 3 |
| 4 | Inventory | Button 4 |
| 5 | Escape menu | Button 5 |
| 6 | Map | Button 6 |