This function can be used to remove the current device mapping from the given gamepad slot index. Once called, the slot index will need to be remapped using the gamepad_test_mapping() function if you want to be able to be able to use the gamepad constants to detect input correctly (direct input can always be retrieved using the gamepad_axis/button/hat_count() and gamepad_axis/button/hat_value() functions together).
gamepad_remove_mapping(index);
Argument | Type | Description |
---|---|---|
index | Real | Which gamepad index "slot" to remove the mapping from. |
N/A
if (remap == true)
{
gamepad_remove_mapping(global.PadIndex);
}
The above code will remove the mapping from the given gamepad index slot based on the value of a variable.