Gamepad_set_axis_deadzone - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Description
Sets the deadzone of the given gamepad device for its analogue thumbsticks to the given value, the default being 0.05 in the range of 0 to 1.
Parameters
Parameter | Data Type | Description |
---|---|---|
device | integer | The gamepad index, must be 0 through 3, 0 being player 1. |
deadzone | float | The value to set the deadzone of the gamepad device to between 0 and 1 (default is 0.05). |
Return Values
void: This function does not return anything.
Example Call
// demonstrates setting the default deadzone of all gamepad devices
for (i = 0; i < gamepad_get_device_count(); i++) {
if (gamepad_is_connected(i)) {
gamepad_set_axis_deadzone(i, 0.05);
}
}
NOTOC