Skip to content

set_button

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.

FunctionFunction nameDefault button assignment
1AttackButton 1
2Talk/lookButton 2
3MagicButton 3
4InventoryButton 4
5Escape menuButton 5
6MapButton 6