public NVidiaShieldWin10Profile()
 {
     base.Name             = "NVIDIA Shield Controller";
     base.Meta             = "NVIDIA Shield Controller on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.NVIDIAShield;
     base.ExcludePlatforms = new string[2]
     {
         "Windows 7",
         "Windows 8"
     };
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickRegex = new string[1]
     {
         "NVIDIA Controller"
     };
     base.ButtonMappings = new InputControlMapping[12]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Back,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "System",
             Target = InputControlType.System,
             Source = UnityInputDeviceProfile.Button12
         },
         new InputControlMapping
         {
             Handle = "Home",
             Target = InputControlType.Home,
             Source = UnityInputDeviceProfile.Button10
         }
     };
     base.AnalogMappings = new InputControlMapping[14]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog5),
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Analog6
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Analog7
         }
     };
 }
Example #2
0
 public NexusPlayerWinProfile()
 {
     base.Name             = "Nexus Player Controller";
     base.Meta             = "Nexus Player Controller on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "GamePad"
     };
     base.ButtonMappings = new InputControlMapping[11]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "System",
             Target = InputControlType.System,
             Source = UnityInputDeviceProfile.Button2
         }
     };
     base.AnalogMappings = new InputControlMapping[12]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog5)
     };
 }
Example #3
0
 public LogitechF310ModeXWinProfile()
 {
     base.Name             = "Logitech F310 Controller";
     base.Meta             = "Logitech F310 Controller on Windows (XInput Mode)";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Xbox360;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "Controller (Gamepad F310)"
     };
     base.ButtonMappings = new InputControlMapping[10]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button7
         }
     };
     base.AnalogMappings = new InputControlMapping[14]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog6),
         new InputControlMapping
         {
             Handle      = "Left Trigger",
             Target      = InputControlType.LeftTrigger,
             Source      = UnityInputDeviceProfile.Analog2,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Right Trigger",
             Target      = InputControlType.RightTrigger,
             Source      = UnityInputDeviceProfile.Analog2,
             SourceRange = InputRange.ZeroToMinusOne,
             TargetRange = InputRange.ZeroToOne
         }
     };
 }
Example #4
0
 public Xbox360WinProfile()
 {
     base.Name             = "Xbox 360 Controller";
     base.Meta             = "Xbox 360 Controller on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Xbox360;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[30]
     {
         "AIRFLO             ",
         "AxisPad",
         "Controller (Afterglow Gamepad for Xbox 360)",
         "Controller (Batarang wired controller (XBOX))",
         "Controller (Gamepad for Xbox 360)",
         "Controller (GPX Gamepad)",
         "Controller (Infinity Controller 360)",
         "Controller (Mad Catz FPS Pro GamePad)",
         "Controller (MadCatz Call of Duty GamePad)",
         "Controller (MadCatz GamePad)",
         "Controller (MLG GamePad for Xbox 360)",
         "Controller (Razer Sabertooth Elite)",
         "Controller (Rock Candy Gamepad for Xbox 360)",
         "Controller (SL-6566)",
         "Controller (Xbox 360 For Windows)",
         "Controller (Xbox 360 Wireless Receiver for Windows)",
         "Controller (Xbox Airflo wired controller)",
         "Controller (XEOX Gamepad)",
         "Cyborg V.3 Rumble Pad",
         "Generic USB Joystick ",
         "MadCatz GamePad (Controller)",
         "Saitek P990 Dual Analog Pad",
         "SL-6566 (Controller)",
         "USB Gamepad ",
         "WingMan RumblePad",
         "XBOX 360 For Windows (Controller)",
         "XEOX Gamepad (Controller)",
         "XEQX Gamepad SL-6556-BK",
         "Controller (<BETOP GAME FOR WINDOWS>)",
         "Controller (Inno GamePad..)"
     };
     LastResortRegex     = "360|xbox|catz";
     base.ButtonMappings = new InputControlMapping[10]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Back,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button7
         }
     };
     base.AnalogMappings = new InputControlMapping[16]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog6),
         new InputControlMapping
         {
             Handle      = "Left Trigger",
             Target      = InputControlType.LeftTrigger,
             Source      = UnityInputDeviceProfile.Analog2,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Right Trigger",
             Target      = InputControlType.RightTrigger,
             Source      = UnityInputDeviceProfile.Analog2,
             SourceRange = InputRange.ZeroToMinusOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Left Trigger",
             Target      = InputControlType.LeftTrigger,
             Source      = UnityInputDeviceProfile.Analog(8),
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Right Trigger",
             Target      = InputControlType.RightTrigger,
             Source      = UnityInputDeviceProfile.Analog(9),
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         }
     };
 }
 public XboxOneProfile()
 {
     base.Name             = "Xbox One Controller";
     base.Meta             = "Xbox One Controller on Xbox One";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.XboxOne;
     base.IncludePlatforms = new string[2]
     {
         "XBOXONE",
         "DURANGOOS"
     };
     JoystickNames = new string[1]
     {
         "Windows.Xbox.Input.Gamepad"
     };
     base.ButtonMappings = new InputControlMapping[10]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "View",
             Target = InputControlType.View,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Menu",
             Target = InputControlType.Menu,
             Source = UnityInputDeviceProfile.Button7
         }
     };
     base.AnalogMappings = new InputControlMapping[16]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog6),
         new InputControlMapping
         {
             Handle      = "Left Trigger",
             Target      = InputControlType.LeftTrigger,
             Source      = UnityInputDeviceProfile.Analog2,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Right Trigger",
             Target      = InputControlType.RightTrigger,
             Source      = UnityInputDeviceProfile.Analog2,
             SourceRange = InputRange.ZeroToMinusOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Left Trigger",
             Target      = InputControlType.LeftTrigger,
             Source      = UnityInputDeviceProfile.Analog8,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Right Trigger",
             Target      = InputControlType.RightTrigger,
             Source      = UnityInputDeviceProfile.Analog9,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         }
     };
 }
 public PlayStationVitaPSMProfile()
 {
     base.Name             = "PlayStation Mobile";
     base.Meta             = "PlayStation Mobile on Vita";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.PlayStationVita;
     base.IncludePlatforms = new string[4]
     {
         "PSM UNITY FOR PSM",
         "PSM ON PS VITA",
         "PS VITA",
         "PSP2OS"
     };
     JoystickNames = new string[1]
     {
         "PS Vita"
     };
     base.ButtonMappings = new InputControlMapping[8]
     {
         new InputControlMapping
         {
             Handle = "Cross",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "Circle",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "Square",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Triangle",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button7
         }
     };
     base.AnalogMappings = new InputControlMapping[12]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog6)
     };
 }
 public LogitechF510ModeDWinProfile()
 {
     base.Name             = "Logitech F510 Controller";
     base.Meta             = "Logitech F510 Controller on Windows (DirectInput Mode)";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Xbox360;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "Logitech RumblePad 2 USB"
     };
     base.ButtonMappings = new InputControlMapping[12]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Back,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Button7
         }
     };
     base.AnalogMappings = new InputControlMapping[12]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog5)
     };
 }
Example #8
0
 public PlayStation3WinProfile()
 {
     base.Name             = "PlayStation 3 Controller";
     base.Meta             = "PlayStation 3 Controller on Windows (via MotioninJoy Gamepad Tool)";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.PlayStation3;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "MotioninJoy Virtual Game Controller"
     };
     base.ButtonMappings = new InputControlMapping[13]
     {
         new InputControlMapping
         {
             Handle = "Cross",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Circle",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "Square",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Triangle",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "System",
             Target = InputControlType.System,
             Source = UnityInputDeviceProfile.Button12
         }
     };
     base.AnalogMappings = new InputControlMapping[12]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog8),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog8),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog9),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog9)
     };
 }
        public PlayStation4WinProfile()
        {
            string str = "®";

            base.Name             = "PlayStation 4 Controller";
            base.Meta             = "PlayStation 4 Controller on Windows";
            base.DeviceClass      = InputDeviceClass.Controller;
            base.DeviceStyle      = InputDeviceStyle.PlayStation4;
            base.IncludePlatforms = new string[1]
            {
                "Windows"
            };
            JoystickNames = new string[2]
            {
                "Wireless Controller",
                "DUALSHOCK" + str + "4 USB Wireless Adaptor"
            };
            base.ButtonMappings = new InputControlMapping[12]
            {
                new InputControlMapping
                {
                    Handle = "Cross",
                    Target = InputControlType.Action1,
                    Source = UnityInputDeviceProfile.Button1
                },
                new InputControlMapping
                {
                    Handle = "Circle",
                    Target = InputControlType.Action2,
                    Source = UnityInputDeviceProfile.Button2
                },
                new InputControlMapping
                {
                    Handle = "Square",
                    Target = InputControlType.Action3,
                    Source = UnityInputDeviceProfile.Button0
                },
                new InputControlMapping
                {
                    Handle = "Triangle",
                    Target = InputControlType.Action4,
                    Source = UnityInputDeviceProfile.Button3
                },
                new InputControlMapping
                {
                    Handle = "Left Bumper",
                    Target = InputControlType.LeftBumper,
                    Source = UnityInputDeviceProfile.Button4
                },
                new InputControlMapping
                {
                    Handle = "Right Bumper",
                    Target = InputControlType.RightBumper,
                    Source = UnityInputDeviceProfile.Button5
                },
                new InputControlMapping
                {
                    Handle = "Share",
                    Target = InputControlType.Share,
                    Source = UnityInputDeviceProfile.Button8
                },
                new InputControlMapping
                {
                    Handle = "Options",
                    Target = InputControlType.Options,
                    Source = UnityInputDeviceProfile.Button9
                },
                new InputControlMapping
                {
                    Handle = "Left Stick Button",
                    Target = InputControlType.LeftStickButton,
                    Source = UnityInputDeviceProfile.Button10
                },
                new InputControlMapping
                {
                    Handle = "Right Stick Button",
                    Target = InputControlType.RightStickButton,
                    Source = UnityInputDeviceProfile.Button11
                },
                new InputControlMapping
                {
                    Handle = "System",
                    Target = InputControlType.System,
                    Source = UnityInputDeviceProfile.Button12
                },
                new InputControlMapping
                {
                    Handle = "TouchPad Button",
                    Target = InputControlType.TouchPadButton,
                    Source = UnityInputDeviceProfile.Button13
                }
            };
            base.AnalogMappings = new InputControlMapping[14]
            {
                UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
                UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
                UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
                UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
                UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog2),
                UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog2),
                UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog5),
                UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog5),
                UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog6),
                UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog6),
                UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog7),
                UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog7),
                new InputControlMapping
                {
                    Handle                 = "Left Trigger",
                    Target                 = InputControlType.LeftTrigger,
                    Source                 = UnityInputDeviceProfile.Analog3,
                    SourceRange            = InputRange.MinusOneToOne,
                    TargetRange            = InputRange.ZeroToOne,
                    IgnoreInitialZeroValue = true
                },
                new InputControlMapping
                {
                    Handle                 = "Right Trigger",
                    Target                 = InputControlType.RightTrigger,
                    Source                 = UnityInputDeviceProfile.Analog4,
                    SourceRange            = InputRange.MinusOneToOne,
                    TargetRange            = InputRange.ZeroToOne,
                    IgnoreInitialZeroValue = true
                }
            };
        }
 public SteelSeriesStratusXLWinProfile()
 {
     base.Name             = "SteelSeries Stratus XL";
     base.Meta             = "SteelSeries Stratus XL on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "Controller (SteelSeries XInput Controller)"
     };
     base.ButtonMappings = new InputControlMapping[10]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Back,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button7
         }
     };
     base.AnalogMappings = new InputControlMapping[16]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog6),
         new InputControlMapping
         {
             Handle      = "Left Trigger",
             Target      = InputControlType.LeftTrigger,
             Source      = UnityInputDeviceProfile.Analog2,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Right Trigger",
             Target      = InputControlType.RightTrigger,
             Source      = UnityInputDeviceProfile.Analog2,
             SourceRange = InputRange.ZeroToMinusOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Analog8
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Analog9
         }
     };
 }
Example #11
0
 public XboxOneWinProfile()
 {
     base.Name             = "XBox One Controller";
     base.Meta             = "XBox One Controller on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.XboxOne;
     base.IncludePlatforms = new string[2]
     {
         "Windows 7",
         "Windows 8"
     };
     JoystickNames = new string[1]
     {
         "Controller (XBOX One For Windows)"
     };
     base.ButtonMappings = new InputControlMapping[10]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "View",
             Target = InputControlType.View,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Menu",
             Target = InputControlType.Menu,
             Source = UnityInputDeviceProfile.Button7
         }
     };
     base.AnalogMappings = new InputControlMapping[14]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog6),
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Analog8
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Analog9
         }
     };
 }
Example #12
0
 public MaxFireBlaze5Profile()
 {
     base.Name             = "MaxFire Blaze5";
     base.Meta             = "MaxFire Blaze5 Controller on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "Controller (MaxFire Blaze5)"
     };
     base.ButtonMappings = new InputControlMapping[10]
     {
         new InputControlMapping
         {
             Handle = "1",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "2",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "3",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "4",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button9
         }
     };
     base.AnalogMappings = new InputControlMapping[14]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog6),
         new InputControlMapping
         {
             Handle      = "Left Trigger",
             Target      = InputControlType.LeftTrigger,
             Source      = UnityInputDeviceProfile.Analog8,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Right Trigger",
             Target      = InputControlType.RightTrigger,
             Source      = UnityInputDeviceProfile.Analog9,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         }
     };
 }
Example #13
0
 public XiamoiWinProfile()
 {
     base.Name             = "Xiamoi Bluetooth Controller";
     base.Meta             = "Xiamoi Bluetooth Controller on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Xbox360;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "XiaoMi Bluetooth Wireless GameController"
     };
     base.ButtonMappings = new InputControlMapping[12]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button13
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button14
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Back,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Button9
         }
     };
     base.AnalogMappings = new InputControlMapping[12]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog7),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog7)
     };
 }
Example #14
0
 public AirFloWiredPS3ProfileWin()
 {
     base.Name             = "Air Flo Wired PS3 Controller";
     base.Meta             = "Air Flo Wired PS3 Controller on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.PlayStation3;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "PS3 Airflo wired controller"
     };
     base.ButtonMappings = new InputControlMapping[13]
     {
         new InputControlMapping
         {
             Handle = "Cross",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "Circle",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Square",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "Triangle",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Home",
             Target = InputControlType.Home,
             Source = UnityInputDeviceProfile.Button12
         }
     };
     base.AnalogMappings = new InputControlMapping[12]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog5)
     };
 }