Ejemplo n.º 1
0
 public GenericLinuxProfile()
 {
     base.Name             = "Generic Controller";
     base.Meta             = "Generic Controller on Linux";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Linux"
     };
     JoystickRegex = new string[1]
     {
         "."
     };
     base.MinUnityVersion = new VersionInfo(5, 0, 0, 0);
     base.ButtonMappings  = new InputControlMapping[15]
     {
         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 = "Back",
             Target = InputControlType.Back,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Menu",
             Target = InputControlType.Menu,
             Source = UnityInputDeviceProfile.Button8
         },
         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 = "DPad Left",
             Target = InputControlType.DPadLeft,
             Source = UnityInputDeviceProfile.Button11,
             Invert = true
         },
         new InputControlMapping
         {
             Handle = "DPad Right",
             Target = InputControlType.DPadRight,
             Source = UnityInputDeviceProfile.Button12
         },
         new InputControlMapping
         {
             Handle = "DPad Up",
             Target = InputControlType.DPadUp,
             Source = UnityInputDeviceProfile.Button13,
             Invert = true
         },
         new InputControlMapping
         {
             Handle = "DPad Down",
             Target = InputControlType.DPadDown,
             Source = UnityInputDeviceProfile.Button14
         }
     };
     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
         }
     };
 }
Ejemplo n.º 2
0
 public MadCatzCTRLRAndroidProfile()
 {
     base.Name             = "Mad Catz C.T.R.L.R Controller";
     base.Meta             = "Mad Catz C.T.R.L.R Controller on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[1]
     {
         "Mad Catz C.T.R.L.R "
     };
     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 PlayStationVitaPSMProfile()
 {
     base.Name             = "PlayStation Mobile";
     base.Meta             = "PlayStation Mobile on Vita";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.PlayStationVita;
     base.IncludePlatforms = new string[4]
     {
         "PSM UNITY FOR PSM",
         "PSM ON PS VITA",
         "PS VITA",
         "PSP2OS"
     };
     JoystickNames = new string[1]
     {
         "PS Vita"
     };
     base.ButtonMappings = new InputControlMapping[8]
     {
         new InputControlMapping
         {
             Handle = "Cross",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "Circle",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "Square",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Triangle",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button7
         }
     };
     base.AnalogMappings = new InputControlMapping[12]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog6)
     };
 }
Ejemplo n.º 4
0
 public AmazonFireTVProfile()
 {
     base.Name             = "Amazon Fire Controller";
     base.Meta             = "Amazon Fire Controller on Amazon Fire TV";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.AmazonFireTV;
     base.IncludePlatforms = new string[2]
     {
         "Amazon AFT",
         "Android"
     };
     JoystickNames = new string[1]
     {
         "Amazon Fire Game Controller"
     };
     base.ButtonMappings = new InputControlMapping[10]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Back,
             Source = UnityInputDeviceProfile.EscapeKey
         },
         new InputControlMapping
         {
             Handle = "Menu",
             Target = InputControlType.Menu,
             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.Analog12
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Analog11
         }
     };
 }
 public RedSamuraiAndroidProfile()
 {
     base.Name             = "Red Samurai Wireless Controller";
     base.Meta             = "Red Samurai Wireless Controller on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[1]
     {
         "GS Gamepad"
     };
     base.ButtonMappings = new InputControlMapping[12]
     {
         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 = "Escape",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Enter",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button10
         },
         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 = "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)
     };
 }
Ejemplo n.º 6
0
 public PlayStation4SteamLinkMacProfile()
 {
     base.Name             = "PlayStation 4 Controller via Steam Link";
     base.Meta             = "PlayStation 4 Controller on Mac via Steam Link";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "OS X"
     };
     JoystickNames = new string[1]
     {
         "Microsoft StreamingGamePad-1"
     };
     base.ButtonMappings = new InputControlMapping[15]
     {
         new InputControlMapping
         {
             Handle = "Cross",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button16
         },
         new InputControlMapping
         {
             Handle = "Circle",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button17
         },
         new InputControlMapping
         {
             Handle = "Square",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button18
         },
         new InputControlMapping
         {
             Handle = "Triangle",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button19
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button13
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button14
         },
         new InputControlMapping
         {
             Handle = "Share",
             Target = InputControlType.Share,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Options",
             Target = InputControlType.Options,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "DPad Up",
             Target = InputControlType.DPadUp,
             Source = UnityInputDeviceProfile.Button5
         },
         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.Button8
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button12
         },
         new InputControlMapping
         {
             Handle = "System",
             Target = InputControlType.System,
             Source = UnityInputDeviceProfile.Button15
         }
     };
     base.AnalogMappings = new InputControlMapping[10]
     {
         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)
     };
 }
 public EightBitdoFC30ProAndroidProfile()
 {
     base.Name             = "8Bitdo FC30 Pro";
     base.Meta             = "8Bitdo FC30 Pro on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.NintendoNES;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[1]
     {
         "8Bitdo FC30 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 = "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
         }
     };
     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 SpeedlinkStrikeWinProfile()
 {
     base.Name             = "Speedlink Strike Controller";
     base.Meta             = "Speedlink Strike Controller on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Win"
     };
     JoystickNames = new string[1]
     {
         "SPEEDLINK STRIKE Gamepad"
     };
     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.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 Xbox360LinuxProfile()
 {
     base.Name             = "XBox 360 Controller";
     base.Meta             = "XBox 360 Controller on Linux";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Xbox360;
     base.IncludePlatforms = new string[1]
     {
         "Linux"
     };
     JoystickNames = new string[3]
     {
         "Microsoft X-Box 360 pad",
         "Generic X-Box pad",
         "Mega World Thrustmaster dual analog 3.2"
     };
     LastResortRegex      = "360";
     base.MaxUnityVersion = new VersionInfo(4, 9, 0, 0);
     base.ButtonMappings  = new InputControlMapping[15]
     {
         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 = "DPad Left",
             Target = InputControlType.DPadLeft,
             Source = UnityInputDeviceProfile.Button11,
             Invert = true
         },
         new InputControlMapping
         {
             Handle = "DPad Right",
             Target = InputControlType.DPadRight,
             Source = UnityInputDeviceProfile.Button12
         },
         new InputControlMapping
         {
             Handle = "DPad Up",
             Target = InputControlType.DPadUp,
             Source = UnityInputDeviceProfile.Button13,
             Invert = true
         },
         new InputControlMapping
         {
             Handle = "DPad Down",
             Target = InputControlType.DPadDown,
             Source = UnityInputDeviceProfile.Button14
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Back,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "System",
             Target = InputControlType.System,
             Source = UnityInputDeviceProfile.Button8
         }
     };
     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
         }
     };
 }
Ejemplo n.º 10
0
 public LogitechF310LinuxProfile()
 {
     base.Name             = "Logitech F310 Controller";
     base.Meta             = "Logitech F310 Controller on Linux";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Xbox360;
     base.IncludePlatforms = new string[1]
     {
         "Linux"
     };
     JoystickNames = new string[1]
     {
         "Logitech Gamepad F310"
     };
     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
         }
     };
 }
 public SteelSeriesFreeMacProfile()
 {
     base.Name             = "SteelSeries Free";
     base.Meta             = "SteelSeries Free on Mac";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "OS X"
     };
     JoystickNames = new string[1]
     {
         "Unknown Zeemote: 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.Button3
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button12
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             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.Analog9,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Right Trigger",
             Target      = InputControlType.RightTrigger,
             Source      = UnityInputDeviceProfile.Analog9,
             SourceRange = InputRange.ZeroToMinusOne,
             TargetRange = InputRange.ZeroToOne
         }
     };
 }
 public PlayStation2WinProfile()
 {
     base.Name             = "PlayStation DualShock 2 Controller";
     base.Meta             = "Compatible with PlayStation 2 Controller to USB adapter.";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.PlayStation2;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "Twin USB Joystick"
     };
     base.ButtonMappings = new InputControlMapping[12]
     {
         new InputControlMapping
         {
             Handle = "Cross",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Circle",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "Square",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Triangle",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button7
         },
         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 = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             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
         }
     };
     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.Analog2),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5)
     };
 }
 public SteelSeriesFreeLinuxProfile()
 {
     base.Name             = "SteelSeries Free";
     base.Meta             = "SteelSeries Free on Linux";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Linux"
     };
     JoystickNames = new string[1]
     {
         "Zeemote: SteelSeries FREE"
     };
     base.ButtonMappings = new InputControlMapping[8]
     {
         new InputControlMapping
         {
             Handle = "4",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "3",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "1",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "2",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button12
         },
         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.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)
     };
 }
Ejemplo n.º 14
0
 public LevelUpBlackHawkWinProfile()
 {
     base.Name             = "Level Up Black Hawk Controller";
     base.Meta             = "Level Up Black Hawk Controller on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "USB Joystick"
     };
     base.ButtonMappings = new InputControlMapping[10]
     {
         new InputControlMapping
         {
             Handle = "Cross",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Circle",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "Square",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Triangle",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "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 = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Start",
             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.Analog3),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5)
     };
     base.AnalogMappings[10].SourceRange = InputRange.ZeroToOne;
     base.AnalogMappings[11].SourceRange = InputRange.ZeroToMinusOne;
 }
Ejemplo n.º 15
0
 public BetopBTPGenericAndroidProfile()
 {
     base.Name             = "BETOP BTP Controller";
     base.Meta             = "BETOP BTP Controller on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Xbox360;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[1]
     {
         "BETOP BFM GAMEPAD"
     };
     LastResortRegex     = "betop ";
     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.Button11
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Home",
             Target = InputControlType.Home,
             Source = UnityInputDeviceProfile.Button12
         },
         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
         }
     };
     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)
     };
 }
Ejemplo n.º 16
0
 public Xbox360MacProfile()
 {
     base.Name             = "XBox 360 Controller";
     base.Meta             = "XBox 360 Controller on Mac";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Xbox360;
     base.IncludePlatforms = new string[1]
     {
         "OS X"
     };
     JoystickNames = new string[6]
     {
         string.Empty,
         "Microsoft Wireless 360 Controller",
         "Mad Catz, Inc. Mad Catz FPS Pro GamePad",
         "Mad Catz, Inc. MadCatz Call of Duty GamePad",
         "©Microsoft Corporation Controller",
         "©Microsoft Corporation Xbox Original Wired Controller"
     };
     LastResortRegex     = "360";
     base.ButtonMappings = new InputControlMapping[15]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button16
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button17
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button18
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button19
         },
         new InputControlMapping
         {
             Handle = "DPad Up",
             Target = InputControlType.DPadUp,
             Source = UnityInputDeviceProfile.Button5
         },
         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.Button8
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button13
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button14
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button12
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Back,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "System",
             Target = InputControlType.System,
             Source = UnityInputDeviceProfile.Button15
         }
     };
     base.AnalogMappings = new InputControlMapping[10]
     {
         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)
     };
 }
        public PlayStation4WinProfile()
        {
            string str = "®";

            base.Name             = "PlayStation 4 Controller";
            base.Meta             = "PlayStation 4 Controller on Windows";
            base.DeviceClass      = InputDeviceClass.Controller;
            base.DeviceStyle      = InputDeviceStyle.PlayStation4;
            base.IncludePlatforms = new string[1]
            {
                "Windows"
            };
            JoystickNames = new string[2]
            {
                "Wireless Controller",
                "DUALSHOCK" + str + "4 USB Wireless Adaptor"
            };
            base.ButtonMappings = new InputControlMapping[12]
            {
                new InputControlMapping
                {
                    Handle = "Cross",
                    Target = InputControlType.Action1,
                    Source = UnityInputDeviceProfile.Button1
                },
                new InputControlMapping
                {
                    Handle = "Circle",
                    Target = InputControlType.Action2,
                    Source = UnityInputDeviceProfile.Button2
                },
                new InputControlMapping
                {
                    Handle = "Square",
                    Target = InputControlType.Action3,
                    Source = UnityInputDeviceProfile.Button0
                },
                new InputControlMapping
                {
                    Handle = "Triangle",
                    Target = InputControlType.Action4,
                    Source = UnityInputDeviceProfile.Button3
                },
                new InputControlMapping
                {
                    Handle = "Left Bumper",
                    Target = InputControlType.LeftBumper,
                    Source = UnityInputDeviceProfile.Button4
                },
                new InputControlMapping
                {
                    Handle = "Right Bumper",
                    Target = InputControlType.RightBumper,
                    Source = UnityInputDeviceProfile.Button5
                },
                new InputControlMapping
                {
                    Handle = "Share",
                    Target = InputControlType.Share,
                    Source = UnityInputDeviceProfile.Button8
                },
                new InputControlMapping
                {
                    Handle = "Options",
                    Target = InputControlType.Options,
                    Source = UnityInputDeviceProfile.Button9
                },
                new InputControlMapping
                {
                    Handle = "Left Stick Button",
                    Target = InputControlType.LeftStickButton,
                    Source = UnityInputDeviceProfile.Button10
                },
                new InputControlMapping
                {
                    Handle = "Right Stick Button",
                    Target = InputControlType.RightStickButton,
                    Source = UnityInputDeviceProfile.Button11
                },
                new InputControlMapping
                {
                    Handle = "System",
                    Target = InputControlType.System,
                    Source = UnityInputDeviceProfile.Button12
                },
                new InputControlMapping
                {
                    Handle = "TouchPad Button",
                    Target = InputControlType.TouchPadButton,
                    Source = UnityInputDeviceProfile.Button13
                }
            };
            base.AnalogMappings = new InputControlMapping[14]
            {
                UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
                UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
                UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
                UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
                UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog2),
                UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog2),
                UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog5),
                UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog5),
                UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog6),
                UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog6),
                UnityInputDeviceProfile.DPadUpMapping2(UnityInputDeviceProfile.Analog7),
                UnityInputDeviceProfile.DPadDownMapping2(UnityInputDeviceProfile.Analog7),
                new InputControlMapping
                {
                    Handle                 = "Left Trigger",
                    Target                 = InputControlType.LeftTrigger,
                    Source                 = UnityInputDeviceProfile.Analog3,
                    SourceRange            = InputRange.MinusOneToOne,
                    TargetRange            = InputRange.ZeroToOne,
                    IgnoreInitialZeroValue = true
                },
                new InputControlMapping
                {
                    Handle                 = "Right Trigger",
                    Target                 = InputControlType.RightTrigger,
                    Source                 = UnityInputDeviceProfile.Analog4,
                    SourceRange            = InputRange.MinusOneToOne,
                    TargetRange            = InputRange.ZeroToOne,
                    IgnoreInitialZeroValue = true
                }
            };
        }
Ejemplo n.º 18
0
 public OuyaWinProfile()
 {
     base.Name             = "OUYA Controller";
     base.Meta             = "OUYA Controller on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Ouya;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "OUYA Game Controller"
     };
     base.LowerDeadZone  = 0.3f;
     base.ButtonMappings = new InputControlMapping[14]
     {
         new InputControlMapping
         {
             Handle = "O",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "U",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button2
         },
         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.Button6
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "DPad Up",
             Target = InputControlType.DPadUp,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "DPad Down",
             Target = InputControlType.DPadDown,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "DPad Left",
             Target = InputControlType.DPadLeft,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "DPad Right",
             Target = InputControlType.DPadRight,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "System",
             Target = InputControlType.System,
             Source = UnityInputDeviceProfile.Button14
         },
         new InputControlMapping
         {
             Handle = "TouchPad Button",
             Target = InputControlType.TouchPadButton,
             Source = UnityInputDeviceProfile.MouseButton0
         }
     };
     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),
         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.Analog5,
             SourceRange = InputRange.ZeroToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle = "TouchPad X Axis",
             Target = InputControlType.TouchPadXAxis,
             Source = UnityInputDeviceProfile.MouseXAxis,
             Raw    = true
         },
         new InputControlMapping
         {
             Handle = "TouchPad Y Axis",
             Target = InputControlType.TouchPadYAxis,
             Source = UnityInputDeviceProfile.MouseYAxis,
             Raw    = true
         }
     };
 }
 public ValveStreamingWinProfile()
 {
     base.Name             = "Valve Streaming Gamepad";
     base.Meta             = "Valve Streaming Gamepad on Windows";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "Controller (Valve Streaming 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 = "Back",
             Target = InputControlType.Back,
             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
         }
     };
 }
 public DroidBoxPS3AndroidProfile()
 {
     base.Name             = "DroidBOX GPD XD PlayON - PS3 Mode";
     base.Meta             = "DroidBOX GPD XD PlayON - PS3 Mode on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[1]
     {
         "PLAYSTATION(R)3"
     };
     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 = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Select",
             Target = InputControlType.Select,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "L1",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "L2",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "L3",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "R1",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "R2",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Button7
         },
         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)
     };
 }
Ejemplo n.º 21
0
 public XboxOneMacProfile()
 {
     base.Name             = "Xbox One Controller";
     base.Meta             = "Xbox One Controller on OSX";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.XboxOne;
     base.IncludePlatforms = new string[1]
     {
         "OS X"
     };
     JoystickNames = new string[1]
     {
         "Microsoft Xbox One Wired Controller"
     };
     base.ButtonMappings = new InputControlMapping[15]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button16
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button17
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button18
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button19
         },
         new InputControlMapping
         {
             Handle = "DPad Up",
             Target = InputControlType.DPadUp,
             Source = UnityInputDeviceProfile.Button5
         },
         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.Button8
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button13
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button14
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button12
         },
         new InputControlMapping
         {
             Handle = "View",
             Target = InputControlType.View,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Menu",
             Target = InputControlType.Menu,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Guide",
             Target = InputControlType.System,
             Source = UnityInputDeviceProfile.Button15
         }
     };
     base.AnalogMappings = new InputControlMapping[10]
     {
         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)
     };
 }
 public RazerServalForgeTVProfile()
 {
     base.Name             = "Razer Serval Controller";
     base.Meta             = "Razer Serval Controller on Razer Forge TV";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Razer Forge"
     };
     JoystickNames = new string[1]
     {
         "Razer Serval"
     };
     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 = "Back",
             Target = InputControlType.Back,
             Source = UnityInputDeviceProfile.EscapeKey
         },
         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.Button11
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Power",
             Target = InputControlType.Power,
             Source = UnityInputDeviceProfile.Button12
         }
     };
     base.AnalogMappings = new InputControlMapping[16]
     {
         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
         },
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Analog12
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Analog11
         }
     };
 }
Ejemplo n.º 23
0
 public GameSirG3wAndroidProfile()
 {
     base.Name             = "GameSir G3w";
     base.Meta             = "GameSir G3w on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[1]
     {
         "Xiaoji Gamesir-G3w"
     };
     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)
     };
 }
Ejemplo n.º 24
0
 public NexusPlayerMacProfile()
 {
     base.Name             = "Nexus Player Controller";
     base.Meta             = "Nexus Player Controller on OS X";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "OS X"
     };
     JoystickNames = new string[1]
     {
         "Unknown Gamepad"
     };
     base.ButtonMappings = new InputControlMapping[11]
     {
         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.Button6
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "System",
             Target = InputControlType.System,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Back",
             Target = InputControlType.Back,
             Source = UnityInputDeviceProfile.Button9
         },
         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)
     };
 }
Ejemplo n.º 25
0
 public LogitechWingManWinProfile()
 {
     base.Name             = "Logitech WingMan Controller";
     base.Meta             = "Logitech WingMan Controller on Windows";
     base.DeviceClass      = InputDeviceClass.FlightStick;
     base.IncludePlatforms = new string[1]
     {
         "Windows"
     };
     JoystickNames = new string[1]
     {
         "WingMan Cordless Gamepad"
     };
     base.ButtonMappings = new InputControlMapping[11]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "C",
             Target = InputControlType.Button0,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Z",
             Target = InputControlType.Button1,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Left Trigger",
             Target = InputControlType.LeftTrigger,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button9
         }
     };
     base.AnalogMappings = new InputControlMapping[13]
     {
         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 = "Throttle",
             Target = InputControlType.Analog0,
             Source = UnityInputDeviceProfile.Analog2
         }
     };
 }
Ejemplo n.º 26
0
 public PlayStation4AndroidProfile()
 {
     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]
     {
         "Sony Computer Entertainment Wireless Controller"
     };
     base.ButtonMappings = new InputControlMapping[10]
     {
         new InputControlMapping
         {
             Handle = "Cross",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "Circle",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button13
         },
         new InputControlMapping
         {
             Handle = "Square",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "Triangle",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button14
         },
         new InputControlMapping
         {
             Handle = "Share",
             Target = InputControlType.Share,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Options",
             Target = InputControlType.Options,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             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.Analog13),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog13),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog14),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog14),
         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.Analog2,
             SourceRange = InputRange.MinusOneToOne,
             TargetRange = InputRange.ZeroToOne
         },
         new InputControlMapping
         {
             Handle      = "Right Trigger",
             Target      = InputControlType.RightTrigger,
             Source      = UnityInputDeviceProfile.Analog3,
             SourceRange = InputRange.MinusOneToOne,
             TargetRange = InputRange.ZeroToOne
         }
     };
 }
 public Xbox360AmazonProfile()
 {
     base.Name             = "XBox 360 Controller";
     base.Meta             = "XBox 360 Controller on Amazon Fire TV";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Xbox360;
     base.IncludePlatforms = new string[1]
     {
         "Amazon AFT"
     };
     JoystickNames = new string[1]
     {
         "Microsoft X-Box 360 pad"
     };
     LastResortRegex     = "360";
     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.EscapeKey
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             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.Analog12
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Analog11
         }
     };
 }
Ejemplo n.º 28
0
 public GameStickProfile()
 {
     base.Name             = "GameStick Controller";
     base.Meta             = "GameStick Controller on GameStick";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "GameStick"
     };
     JoystickNames = new string[4]
     {
         "GameStick Controller 1",
         "GameStick Controller 2",
         "GameStick Controller 3",
         "GameStick Controller 4"
     };
     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[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)
     };
 }
Ejemplo n.º 29
0
 public SteelSeriesFreeAndroidProfile()
 {
     base.Name             = "SteelSeries Free";
     base.Meta             = "SteelSeries Free on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[2]
     {
         "Broadcom Bluetooth HID",
         "Zeemote: 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.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
         },
         new InputControlMapping
         {
             Handle = "Right Trigger",
             Target = InputControlType.RightTrigger,
             Source = UnityInputDeviceProfile.Analog11
         }
     };
 }
Ejemplo n.º 30
0
 public GameStickLinuxProfile()
 {
     base.Name             = "GameStick Controller";
     base.Meta             = "GameStick Controller on Linux";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Linux"
     };
     JoystickNames = new string[1]
     {
         "GameStick Controller"
     };
     base.MaxUnityVersion = new VersionInfo(4, 9, 0, 0);
     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.Button3
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button6
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button7
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button13
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button14
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button11
         }
     };
     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)
     };
 }