// ------------------- private void OnGamepadConnected(GamepadManager.Gamepad gamepad) { //this.AddNotification(true, gamepad); string name = gamepad.GetProfileName(); if (string.IsNullOrEmpty(name)) { this.AddNotification(string.Format(this.msgUnknownGamepadConnected, gamepad.GetInternalJoyName()), this.iconUnknownGamepadConnected); } else { this.AddNotification(string.Format(this.msgKnownGamepadConnected, gamepad.GetProfileName()), this.iconKnownGamepadConnected); } //this.AddNotification("Gamepad (" + name + ") has been connected!"); //, Color.white); }
// ------------------- private void OnGamepadDisactivated(GamepadManager.Gamepad gamepad, GamepadManager.DisconnectionReason reason) { //this.AddNotification(string.Format(this.msgGamepadDisconnected, gamepad.GetProfileName(), gamepad.GetSlot()), this.iconGamepadDisconnected); }
// ------------------ private void OnGamepadActivated(GamepadManager.Gamepad gamepad) { this.AddNotification(string.Format(this.msgGamepadActivated, gamepad.GetProfileName(), gamepad.GetSlot()), this.iconGamepadDisactivated); //this.AddNotification("Gamepad " + gamepad.GetProfileName() + " activated at slot " + gamepad.GetSlot() + "!"); //, Color.white); }