-
Notifications
You must be signed in to change notification settings - Fork 0
Gamepad_set_axis_deadzone
hugh greene edited this page Jun 20, 2022
·
1 revision
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.
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). |
void: This function does not return anything.
// 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
edited by hpg678 on Github