public MogaHeroPowerAndroidProfile()
 {
     base.Name             = "Moga Hero Power";
     base.Meta             = "Moga Hero Power on Android";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.IncludePlatforms = new string[1]
     {
         "Android"
     };
     JoystickNames = new string[1]
     {
         "Moga 2 HID"
     };
     base.ButtonMappings = new InputControlMapping[9]
     {
         new InputControlMapping
         {
             Handle = "A",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "B",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "X",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Y",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Start",
             Target = InputControlType.Start,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "L1",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "R1",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button9
         }
     };
     base.AnalogMappings = new InputControlMapping[14]
     {
         UnityInputDeviceProfile.LeftTriggerMapping(UnityInputDeviceProfile.Analog12),
         UnityInputDeviceProfile.RightTriggerMapping(UnityInputDeviceProfile.Analog11),
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.DPadUpMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog5)
     };
     base.AnalogMappings[0].SourceRange = InputRange.ZeroToOne;
     base.AnalogMappings[1].SourceRange = InputRange.ZeroToOne;
 }
Ejemplo n.º 2
0
 public PlayStation4MacUSBProfile()
 {
     base.Name             = "PlayStation 4 Controller";
     base.Meta             = "PlayStation 4 Controller on Mac";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.PlayStation4;
     base.IncludePlatforms = new string[1]
     {
         "OS X"
     };
     JoystickNames = new string[2]
     {
         "Sony Computer Entertainment Wireless Controller",
         "Sony Interactive Entertainment Wireless Controller"
     };
     base.ButtonMappings = new InputControlMapping[12]
     {
         new InputControlMapping
         {
             Handle = "Cross",
             Target = InputControlType.Action1,
             Source = UnityInputDeviceProfile.Button1
         },
         new InputControlMapping
         {
             Handle = "Circle",
             Target = InputControlType.Action2,
             Source = UnityInputDeviceProfile.Button2
         },
         new InputControlMapping
         {
             Handle = "Square",
             Target = InputControlType.Action3,
             Source = UnityInputDeviceProfile.Button0
         },
         new InputControlMapping
         {
             Handle = "Triangle",
             Target = InputControlType.Action4,
             Source = UnityInputDeviceProfile.Button3
         },
         new InputControlMapping
         {
             Handle = "Left Bumper",
             Target = InputControlType.LeftBumper,
             Source = UnityInputDeviceProfile.Button4
         },
         new InputControlMapping
         {
             Handle = "Right Bumper",
             Target = InputControlType.RightBumper,
             Source = UnityInputDeviceProfile.Button5
         },
         new InputControlMapping
         {
             Handle = "Share",
             Target = InputControlType.Share,
             Source = UnityInputDeviceProfile.Button8
         },
         new InputControlMapping
         {
             Handle = "Options",
             Target = InputControlType.Options,
             Source = UnityInputDeviceProfile.Button9
         },
         new InputControlMapping
         {
             Handle = "Left Stick Button",
             Target = InputControlType.LeftStickButton,
             Source = UnityInputDeviceProfile.Button10
         },
         new InputControlMapping
         {
             Handle = "Right Stick Button",
             Target = InputControlType.RightStickButton,
             Source = UnityInputDeviceProfile.Button11
         },
         new InputControlMapping
         {
             Handle = "System",
             Target = InputControlType.System,
             Source = UnityInputDeviceProfile.Button12
         },
         new InputControlMapping
         {
             Handle = "TouchPad Button",
             Target = InputControlType.TouchPadButton,
             Source = UnityInputDeviceProfile.Button13
         }
     };
     base.AnalogMappings = new InputControlMapping[14]
     {
         UnityInputDeviceProfile.LeftStickLeftMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickRightMapping(UnityInputDeviceProfile.Analog0),
         UnityInputDeviceProfile.LeftStickUpMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.LeftStickDownMapping(UnityInputDeviceProfile.Analog1),
         UnityInputDeviceProfile.RightStickLeftMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickRightMapping(UnityInputDeviceProfile.Analog2),
         UnityInputDeviceProfile.RightStickUpMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.RightStickDownMapping(UnityInputDeviceProfile.Analog3),
         UnityInputDeviceProfile.LeftTriggerMapping(UnityInputDeviceProfile.Analog4),
         UnityInputDeviceProfile.RightTriggerMapping(UnityInputDeviceProfile.Analog5),
         UnityInputDeviceProfile.DPadLeftMapping(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadRightMapping(UnityInputDeviceProfile.Analog6),
         UnityInputDeviceProfile.DPadUpMapping(UnityInputDeviceProfile.Analog7),
         UnityInputDeviceProfile.DPadDownMapping(UnityInputDeviceProfile.Analog7)
     };
 }
Ejemplo n.º 3
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)
     };
 }
Ejemplo n.º 4
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)
     };
 }
Ejemplo n.º 5
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)
     };
 }
Ejemplo n.º 6
0
 public LogitechF310ModeXMacProfile()
 {
     base.Name             = "Logitech F310 Controller";
     base.Meta             = "Logitech F310 Controller on Mac (Mode X)";
     base.DeviceClass      = InputDeviceClass.Controller;
     base.DeviceStyle      = InputDeviceStyle.Xbox360;
     base.IncludePlatforms = new string[1]
     {
         "OS X"
     };
     JoystickNames = new string[1]
     {
         "Logitech Gamepad F310"
     };
     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)
     };
 }