ensure gamepads connect automatically to first player without controller #405
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/add-gamepads-auto-connect"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR aims to manage better controller connection/disconnection.
The aim is to update the the input view when the gamepad is connected or disconnected accordingly.
and to map new gamepad connected to first player without any controller setup.
Also take into account some steamOS specific behavior (remove Steam virtual pad from list of available gamepads).
Download the artifacts for this pull request:
GUI-less
Only for Developers
Additionally, there's differing levels of indentation in places, such as in LinkDevicesToPlayers.
Each level of indentation should be equivalent to 4 spaces.
@ -44,0 +56,4 @@
availableDevices.Remove(steamDeckPad.Value);
}
}
}
RemoveSdpWhenExternalPadsConnected
@ -44,0 +68,4 @@
private void LinkDevicesToPlayers(List<InputConfig> _inputConfig) {
var _availableDevices = getGamepadsDescriptions();
removeSDPWhenExternalPadsConnected(_availableDevices);
GetGamepadsDescriptions
Please apply proper spacing.
Here too
Pull request closed