public JoyConController( bool Enabled, int Index, float Deadzone, float TriggerThreshold, JoyConControllerLeft Left, JoyConControllerRight Right) { this.Enabled = Enabled; this.Index = Index; this.Deadzone = Deadzone; this.TriggerThreshold = TriggerThreshold; this.Left = Left; this.Right = Right; //Unmapped controllers are problematic, skip them if (GamePad.GetName(Index) == "Unmapped Controller") { this.Enabled = false; } }
public JoyConController( bool enabled, int index, float deadzone, float triggerThreshold, JoyConControllerLeft left, JoyConControllerRight right) { Enabled = enabled; Index = index; Deadzone = deadzone; TriggerThreshold = triggerThreshold; Left = left; Right = right; //Unmapped controllers are problematic, skip them if (GamePad.GetName(index) == "Unmapped Controller") { Enabled = false; } }