public SpeedlinkStrikeMacProfile()
 {
     base.Name             = "Speedlink Strike Controller";
     base.Meta             = "Speedlink Strike Controller on Mac (Analog Mode)";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "OS X"
     };
     JoystickNames = new string[1]
     {
         "DragonRise Inc.   Generic   USB  Joystick  "
     };
     base.ButtonMappings = new InputControlMapping[12]
     {
         new InputControlMapping
         {
             Handle = "3",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "2",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "4",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "1",
             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 = "10",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "9",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button8
         },
         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
         }
     };
     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.DPadUpMapping(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog6)
     };
 }
 public AndroidTVAmazonProfile()
 {
     base.Name             = "Android TV Controller";
     base.Meta             = "Android TV Controller on Amazon Fire TV";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Amazon AFT"
     };
     JoystickNames = new string[1]
     {
         "Gamepad"
     };
     base.ButtonMappings = new InputControlMapping[9]
     {
         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.EscapeKey
         }
     };
     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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5),
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Analog12
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Analog11
         }
     };
 }
Esempio n. 3
0
 public GreenThrottleAtlasAndroidProfile()
 {
     base.Name             = "Green Throttle Atlas Controller";
     base.Meta             = "Green Throttle Atlas Controller on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[1]
     {
         "Green Throttle Atlas"
     };
     base.ButtonMappings = new InputControlMapping[9]
     {
         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 = "Start",
             Target = InputControlType.Start,
             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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5),
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Analog12
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Analog11
         }
     };
 }
 public RazerServalMacProfile()
 {
     base.Name             = "Razer Serval Controller";
     base.Meta             = "Razer Serval Controller on Mac";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "OS X"
     };
     JoystickNames = new string[2]
     {
         "Razer Razer Serval",
         "Unknown Razer Serval"
     };
     base.ButtonMappings = new InputControlMapping[13]
     {
         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 = "Back",
             Target = InputControlType.Back,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Home",
             Target = InputControlType.Home,
             Source = UnityInputDeviceProfile.Button11
         },
         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 = "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.Button12
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Power",
             Target = InputControlType.Power,
             Source = UnityInputDeviceProfile.Button10
         }
     };
     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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5)
     };
 }
Esempio n. 5
0
 public MogaProAndroidProfile()
 {
     base.Name             = "Moga Pro";
     base.Meta             = "Moga Pro on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[2]
     {
         "Moga Pro HID",
         "Fire Bluetooth HID"
     };
     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.Button11
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5),
         new InputControlMapping
         {
             Handle      = "Left Trigger",
             Target      = InputControlType.LeftTrigger,
             Source      = UnityInputDeviceProfile.Analog12,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Right Trigger",
             Target      = InputControlType.RightTrigger,
             Source      = UnityInputDeviceProfile.Analog11,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         }
     };
 }
 public MogaHeroPowerAndroidProfile()
 {
     base.Name             = "Moga Hero Power";
     base.Meta             = "Moga Hero Power on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[1]
     {
         "Moga 2 HID"
     };
     base.ButtonMappings = new InputControlMapping[9]
     {
         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 = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "L1",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "R1",
             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
         }
     };
     base.AnalogMappings = new InputControlMapping[14]
     {
         UnityInputDeviceProfile.LeftTriggerMapping(UnityInputDeviceProfile.Analog12),
         UnityInputDeviceProfile.RightTriggerMapping(UnityInputDeviceProfile.Analog11),
         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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5)
     };
     base.AnalogMappings[0].SourceRange = InputRange.ZeroToOne;
     base.AnalogMappings[1].SourceRange = InputRange.ZeroToOne;
 }
 public XboxOneBluetoothAndroidProfile()
 {
     base.Name             = "XBox One Controller";
     base.Meta             = "XBox One Controller on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.XboxOne;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     base.ExcludePlatforms = new string[1]
     {
         "Amazon AFT"
     };
     JoystickNames = new string[1]
     {
         "Xbox Wireless 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 = "Menu",
             Target = InputControlType.Menu,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "View",
             Target = InputControlType.View,
             Source = UnityInputDeviceProfile.Button11
         }
     };
     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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5),
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Analog12
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Analog11
         }
     };
 }
 public PlayStation4AndroidXperiaZ5Profile()
 {
     base.Name             = "PlayStation 4 Controller";
     base.Meta             = "PlayStation 4 Controller on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.PlayStation4;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     base.ExcludePlatforms = new string[1]
     {
         "Amazon AFT"
     };
     JoystickNames = new string[1]
     {
         "Wireless Controller"
     };
     base.ButtonMappings = new InputControlMapping[12]
     {
         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 = "L1",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "L2",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "R1",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "R2",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Share",
             Target = InputControlType.Share,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Options",
             Target = InputControlType.Options,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "L3",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "R3",
             Target = InputControlType.RightStickButton,
             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.Analog3),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5)
     };
 }
 public BeboncoolDA015CAAndroidProfile()
 {
     base.Name             = "BEBONCOOL DA015-CA Controller";
     base.Meta             = "BEBONCOOL DA015-CA Controller on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Xbox360;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[1]
     {
         "BBC-GAME"
     };
     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.Button2
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "L1",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "R1",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "L2",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "R2",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Button7
         },
         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[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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5)
     };
 }
 public PlayStation3AndroidProfile()
 {
     base.Name             = "PlayStation 3 Controller";
     base.Meta             = "PlayStation 3 Controller on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.PlayStation3;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[3]
     {
         "PLAYSTATION(R)3 Controller",
         "SHENGHIC 2009/0708ZXW-V1Inc. PLAYSTATION(R)3Conteroller",
         "Sony PLAYSTATION(R)3 Controller"
     };
     LastResortRegex     = "PLAYSTATION(R)3";
     base.ButtonMappings = new InputControlMapping[10]
     {
         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 = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "System",
             Target = InputControlType.System,
             Source = UnityInputDeviceProfile.MenuKey
         }
     };
     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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5),
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Analog6
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Analog7
         }
     };
 }
 public LogitechF310ModeDMacProfile()
 {
     base.Name             = "Logitech F310 Controller";
     base.Meta             = "Logitech F310 Controller on Mac (Mode D)";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Xbox360;
     base.IncludePlatforms = new string[1]
     {
         "OS X"
     };
     JoystickNames = new string[1]
     {
         "Logitech Logitech Dual Action"
     };
     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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5)
     };
 }
 public MogaProWinProfile()
 {
     base.Name             = "Moga Pro Controller";
     base.Meta             = "Moga Pro Controller on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "Android Controller Gen-2(ACC)"
     };
     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.Analog2),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5),
         new InputControlMapping
         {
             Handle      = "Left Trigger",
             Target      = InputControlType.LeftTrigger,
             Source      = UnityInputDeviceProfile.Analog9,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Right Trigger",
             Target      = InputControlType.RightTrigger,
             Source      = UnityInputDeviceProfile.Analog9,
             SourceRange = InputRange.ZeroToMinusOne,
             TargetRange = InputRange.ZeroToOne
         }
     };
 }
Esempio n. 13
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 OuyaAmazonProfile()
 {
     base.Name             = "OUYA Controller";
     base.Meta             = "OUYA Controller on Amazon Fire TV";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Ouya;
     base.IncludePlatforms = new string[1]
     {
         "Amazon AFT"
     };
     JoystickNames = new string[1]
     {
         "OUYA Game Controller"
     };
     base.LowerDeadZone  = 0.3f;
     base.ButtonMappings = new InputControlMapping[8]
     {
         new InputControlMapping
         {
             Handle = "O",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "U",
             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
         }
     };
     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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5),
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Analog12
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Analog11
         }
     };
 }
Esempio n. 15
0
 public PlayStation4MacUSBProfile()
 {
     base.Name             = "PlayStation 4 Controller";
     base.Meta             = "PlayStation 4 Controller on Mac";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.PlayStation4;
     base.IncludePlatforms = new string[1]
     {
         "OS X"
     };
     JoystickNames = new string[2]
     {
         "Sony Computer Entertainment Wireless Controller",
         "Sony Interactive Entertainment Wireless Controller"
     };
     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.Analog3),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.LeftTriggerMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.RightTriggerMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadUpMapping(UnityInputDeviceProfile.Analog7),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog7)
     };
 }
Esempio n. 16
0
 public HamaBlackForceWinProfile()
 {
     base.Name             = "Hama Black Force Controller";
     base.Meta             = "Hama Black Force Controller on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "Generic   USB  Joystick  "
     };
     base.ButtonMappings = new InputControlMapping[12]
     {
         new InputControlMapping
         {
             Handle = "3",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "2",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "4",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "1",
             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 = "B9",
             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 = "B10",
             Target = InputControlType.Start,
             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.Analog4),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadUpMapping(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog6)
     };
 }
Esempio n. 17
0
 public PlayStation3BWinProfile()
 {
     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 DS3"
     };
     base.ButtonMappings = new InputControlMapping[17]
     {
         new InputControlMapping
         {
             Handle = "Cross",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button14
         },
         new InputControlMapping
         {
             Handle = "Circle",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button13
         },
         new InputControlMapping
         {
             Handle = "Square",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button15
         },
         new InputControlMapping
         {
             Handle = "Triangle",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button12
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "System",
             Target = InputControlType.System,
             Source = UnityInputDeviceProfile.Button16
         },
         new InputControlMapping
         {
             Handle = "DPad Left",
             Target = InputControlType.DPadLeft,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "DPad Right",
             Target = InputControlType.DPadRight,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "DPad Up",
             Target = InputControlType.DPadUp,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "DPad Down",
             Target = InputControlType.DPadDown,
             Source = UnityInputDeviceProfile.Button6
         }
     };
     base.AnalogMappings = new InputControlMapping[8]
     {
         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)
     };
 }
Esempio n. 18
0
 public EightBitdoNES30ProAndroidProfile()
 {
     base.Name             = "8Bitdo NES30 Pro Controller";
     base.Meta             = "8Bitdo NES30 Pro Controller on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.NintendoNES;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[1]
     {
         "8Bitdo NES30 Pro"
     };
     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 = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "L1",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "R1",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "L2",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "R2",
             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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5)
     };
 }
Esempio n. 19
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)
     };
 }
 public FlareAndroidProfile()
 {
     base.Name             = "Flare Controller";
     base.Meta             = "Flare Controller on Flare";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[1]
     {
         "MTK BT HID"
     };
     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.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 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.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Back,
             Source = UnityInputDeviceProfile.EscapeKey
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button10
         }
     };
     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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5)
     };
 }
 public GenericBlackBerryProfile()
 {
     base.Name             = "Generic Gamepad";
     base.Meta             = "Generic Gamepad on BlackBerry";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Blackberry"
     };
     JoystickNames = new string[1]
     {
         "BlackBerry Gamepad :: SteelSeries FREE"
     };
     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.DPadUpMapping(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog6),
         new InputControlMapping
         {
             Handle      = "Left Trigger",
             Target      = InputControlType.LeftTrigger,
             Source      = UnityInputDeviceProfile.Analog8,
             SourceRange = InputRange.ZeroToMinusOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Right Trigger",
             Target      = InputControlType.RightTrigger,
             Source      = UnityInputDeviceProfile.Analog9,
             SourceRange = InputRange.ZeroToMinusOne,
             TargetRange = InputRange.ZeroToOne
         }
     };
 }
 public LogitechF510LinuxProfile()
 {
     base.Name             = "Logitech F510 Controller";
     base.Meta             = "Logitech F510 Controller on Linux";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Xbox360;
     base.IncludePlatforms = new string[1]
     {
         "Linux"
     };
     JoystickNames = new string[1]
     {
         "Logitech Gamepad F510"
     };
     base.MaxUnityVersion = new VersionInfo(4, 9, 0, 0);
     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.Button9
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button6
         }
     };
     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.Analog6),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadUpMapping(UnityInputDeviceProfile.Analog7),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog7),
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Analog2
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Analog5
         }
     };
 }
Esempio n. 23
0
 public SamsungGP20AndroidProfile()
 {
     base.Name             = "Samgsung Game Pad EI-GP20";
     base.Meta             = "Samgsung Game Pad EI-GP20 on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "ANDROID"
     };
     JoystickNames = new string[1]
     {
         "Samsung Game Pad EI-GP20"
     };
     base.ButtonMappings = new InputControlMapping[8]
     {
         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 = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button10
         }
     };
     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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5)
     };
 }
 public PlayStation3LinuxProfile()
 {
     base.Name             = "PlayStation 3 Controller";
     base.Meta             = "PlayStation 3 Controller on Linux";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.PlayStation3;
     base.IncludePlatforms = new string[1]
     {
         "Linux"
     };
     JoystickNames = new string[2]
     {
         "Sony PLAYSTATION(R)3 Controller",
         "SHENGHIC 2009/0708ZXW-V1Inc. PLAYSTATION(R)3Conteroller"
     };
     base.MaxUnityVersion = new VersionInfo(4, 9, 0, 0);
     base.ButtonMappings  = new InputControlMapping[17]
     {
         new InputControlMapping
         {
             Handle = "Cross",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button14
         },
         new InputControlMapping
         {
             Handle = "Circle",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button13
         },
         new InputControlMapping
         {
             Handle = "Square",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button15
         },
         new InputControlMapping
         {
             Handle = "Triangle",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button12
         },
         new InputControlMapping
         {
             Handle = "DPad Up",
             Target = InputControlType.DPadUp,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "DPad Down",
             Target = InputControlType.DPadDown,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "DPad Left",
             Target = InputControlType.DPadLeft,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "DPad Right",
             Target = InputControlType.DPadRight,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "System",
             Target = InputControlType.System,
             Source = UnityInputDeviceProfile.Button16
         }
     };
     base.AnalogMappings = new InputControlMapping[8]
     {
         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)
     };
 }
Esempio n. 25
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
         }
     };
 }
Esempio n. 26
0
 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 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
         }
     };
 }
 public SaitekAviatorWinProfile()
 {
     base.Name             = "Saitek AV8R";
     base.Meta             = "Saitek AV8R on Windows";
     base.DeviceClass      = InputDeviceClass.FlightStick;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "Aviator for Playstation 3/PC"
     };
     base.ButtonMappings = new InputControlMapping[12]
     {
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Circle",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "Square",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Triangle",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "DPad Up",
             Target = InputControlType.DPadUp,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "DPad Right",
             Target = InputControlType.DPadRight,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "DPad Down",
             Target = InputControlType.DPadDown,
             Source = UnityInputDeviceProfile.Button6,
             Invert = true
         },
         new InputControlMapping
         {
             Handle = "DPad Left",
             Target = InputControlType.DPadLeft,
             Source = UnityInputDeviceProfile.Button7
         },
         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 = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button11
         }
     };
     base.AnalogMappings = new InputControlMapping[12]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog4),
         new InputControlMapping
         {
             Handle      = "Right Stick Up",
             Target      = InputControlType.RightStickUp,
             Source      = UnityInputDeviceProfile.Analog5,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Right Stick Down",
             Target      = InputControlType.RightStickDown,
             Source      = UnityInputDeviceProfile.Analog5,
             SourceRange = InputRange.ZeroToMinusOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Throttle Up",
             Target      = InputControlType.RightTrigger,
             Source      = UnityInputDeviceProfile.Analog2,
             SourceRange = InputRange.ZeroToMinusOne,
             TargetRange = InputRange.ZeroToMinusOne,
             Invert      = true
         },
         new InputControlMapping
         {
             Handle      = "Throttle Down",
             Target      = InputControlType.LeftTrigger,
             Source      = UnityInputDeviceProfile.Analog2,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Left Bumper",
             Target      = InputControlType.LeftBumper,
             Source      = UnityInputDeviceProfile.Analog3,
             SourceRange = InputRange.ZeroToMinusOne,
             TargetRange = InputRange.ZeroToMinusOne,
             Invert      = true
         },
         new InputControlMapping
         {
             Handle      = "Right Bumper",
             Target      = InputControlType.RightBumper,
             Source      = UnityInputDeviceProfile.Analog3,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         }
     };
 }
Esempio n. 29
0
 public NatecGenesisP44Profile()
 {
     base.Name             = "Natec Genesis P44 Controller";
     base.Meta             = "Natec Genesis P44 Controller on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "EX10 GAMEPAD"
     };
     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 = "L",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "R",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "LL",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "RR",
             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 = "Menu",
             Target = InputControlType.Menu,
             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.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5)
     };
 }
 public ExecutionerXProfile()
 {
     base.Name             = "Executioner X Controller";
     base.Meta             = "Executioner X Controller";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[2]
     {
         "Windows",
         "OS X"
     };
     JoystickNames = new string[2]
     {
         "Zeroplus PS Vibration Feedback Converter",
         "Zeroplus PS Vibration Feedback Converter "
     };
     base.ButtonMappings = new InputControlMapping[12]
     {
         new InputControlMapping
         {
             Handle = "3",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "2",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "4",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "1",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button0
         },
         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 = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Options",
             Target = InputControlType.Options,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button10
         }
     };
     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.Analog6),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadUpMapping(UnityInputDeviceProfile.Analog7),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog7)
     };
 }