Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gamepad.GamepadAdded += GamepadAdded;
Gamepad.GamepadRemoved += GamepadRemoved;
private void GamepadAdded(object sender, Gamepad gamepad)
{
Debug.WriteLine("A gamepad was connected");
}
private void GamepadRemoved(object sender, Gamepad gamepad)
{
Debug.WriteLine("A gamepad was disconnected");
}
// Get all currently connected gamepads
var gamepads = Gamepad.Gamepads;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment