public NintendoSwitchProMacNativeProfile() { base.Name = "Nintendo Switch Pro Controller"; base.Meta = "Nintendo Switch Pro Controller on Mac"; base.DeviceClass = InputDeviceClass.Controller; base.DeviceStyle = InputDeviceStyle.NintendoSwitch; base.UpperDeadZone = 0.7f; base.IncludePlatforms = new string[1] { "OS X" }; Matchers = new NativeInputDeviceMatcher[1] { new NativeInputDeviceMatcher { VendorID = 1406, ProductID = 8201 } }; base.ButtonMappings = new InputControlMapping[18] { new InputControlMapping { Handle = "B", Target = InputControlType.Action1, Source = NativeInputDeviceProfile.Button(0) }, new InputControlMapping { Handle = "A", Target = InputControlType.Action2, Source = NativeInputDeviceProfile.Button(1) }, new InputControlMapping { Handle = "Y", Target = InputControlType.Action3, Source = NativeInputDeviceProfile.Button(2) }, new InputControlMapping { Handle = "X", Target = InputControlType.Action4, Source = NativeInputDeviceProfile.Button(3) }, new InputControlMapping { Handle = "L", Target = InputControlType.LeftBumper, Source = NativeInputDeviceProfile.Button(4) }, new InputControlMapping { Handle = "R", Target = InputControlType.RightBumper, Source = NativeInputDeviceProfile.Button(5) }, new InputControlMapping { Handle = "ZL", Target = InputControlType.LeftTrigger, Source = NativeInputDeviceProfile.Button(6) }, new InputControlMapping { Handle = "ZR", Target = InputControlType.RightTrigger, Source = NativeInputDeviceProfile.Button(7) }, new InputControlMapping { Handle = "Minus", Target = InputControlType.Minus, Source = NativeInputDeviceProfile.Button(8) }, new InputControlMapping { Handle = "Plus", Target = InputControlType.Plus, Source = NativeInputDeviceProfile.Button(9) }, new InputControlMapping { Handle = "Left Stick Button", Target = InputControlType.LeftStickButton, Source = NativeInputDeviceProfile.Button(10) }, new InputControlMapping { Handle = "Right Stick Button", Target = InputControlType.RightStickButton, Source = NativeInputDeviceProfile.Button(11) }, new InputControlMapping { Handle = "Home", Target = InputControlType.Home, Source = NativeInputDeviceProfile.Button(12) }, new InputControlMapping { Handle = "Capture", Target = InputControlType.Capture, Source = NativeInputDeviceProfile.Button(13) }, new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Button(16) }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Button(17) }, new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Button(18) }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Button(19) } }; base.AnalogMappings = new InputControlMapping[8] { new InputControlMapping { Handle = "Left Stick Left", Target = InputControlType.LeftStickLeft, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Right", Target = InputControlType.LeftStickRight, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Up", Target = InputControlType.LeftStickUp, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Down", Target = InputControlType.LeftStickDown, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Left", Target = InputControlType.RightStickLeft, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Right", Target = InputControlType.RightStickRight, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Up", Target = InputControlType.RightStickUp, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Down", Target = InputControlType.RightStickDown, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne } }; }
public GameCubeMayflashWindowsNativeProfile() { base.Name = "GameCube Controller"; base.Meta = "GameCube Controller on Windows via MAYFLASH adapter"; base.DeviceClass = InputDeviceClass.Controller; base.DeviceStyle = InputDeviceStyle.NintendoGameCube; base.UpperDeadZone = 0.7f; Matchers = new NativeInputDeviceMatcher[2] { new NativeInputDeviceMatcher { VendorID = 121, ProductID = 6211 }, new NativeInputDeviceMatcher { VendorID = 121, ProductID = 6212 } }; base.ButtonMappings = new InputControlMapping[12] { new InputControlMapping { Handle = "X", Target = InputControlType.Action3, Source = NativeInputDeviceProfile.Button(0) }, new InputControlMapping { Handle = "A", Target = InputControlType.Action1, Source = NativeInputDeviceProfile.Button(1) }, new InputControlMapping { Handle = "B", Target = InputControlType.Action2, Source = NativeInputDeviceProfile.Button(2) }, new InputControlMapping { Handle = "Y", Target = InputControlType.Action4, Source = NativeInputDeviceProfile.Button(3) }, new InputControlMapping { Handle = "Left Trigger Button", Target = InputControlType.Action5, Source = NativeInputDeviceProfile.Button(4) }, new InputControlMapping { Handle = "Right Trigger Button", Target = InputControlType.Action6, Source = NativeInputDeviceProfile.Button(5) }, new InputControlMapping { Handle = "Z", Target = InputControlType.RightBumper, Source = NativeInputDeviceProfile.Button(7) }, new InputControlMapping { Handle = "Start", Target = InputControlType.Start, Source = NativeInputDeviceProfile.Button(9) }, new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Button(12) }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Button(13) }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Button(14) }, new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Button(15) } }; base.AnalogMappings = new InputControlMapping[14] { new InputControlMapping { Handle = "C Left", Target = InputControlType.RightStickLeft, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "C Right", Target = InputControlType.RightStickRight, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "C Up", Target = InputControlType.RightStickUp, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "C Down", Target = InputControlType.RightStickDown, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Up", Target = InputControlType.LeftStickUp, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Down", Target = InputControlType.LeftStickDown, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Left", Target = InputControlType.LeftStickLeft, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Right", Target = InputControlType.LeftStickRight, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Trigger", Target = InputControlType.RightTrigger, Source = NativeInputDeviceProfile.Analog(4), SourceRange = InputRange.MinusOneToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Trigger", Target = InputControlType.LeftTrigger, Source = NativeInputDeviceProfile.Analog(5), SourceRange = InputRange.MinusOneToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Analog(7), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Analog(7), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne } }; }
public EightBitdoSFC30WindowsNativeProfile() { base.Name = "8Bitdo SFC30 Controller"; base.Meta = "8Bitdo SFC30 Controller on Windows"; base.DeviceClass = InputDeviceClass.Controller; base.DeviceStyle = InputDeviceStyle.NintendoSNES; Matchers = new NativeInputDeviceMatcher[2] { new NativeInputDeviceMatcher { VendorID = 11720, ProductID = 43809 }, new NativeInputDeviceMatcher { VendorID = 11720, ProductID = 10288 } }; base.ButtonMappings = new InputControlMapping[8] { new InputControlMapping { Handle = "A", Target = InputControlType.Action2, Source = NativeInputDeviceProfile.Button(0) }, new InputControlMapping { Handle = "B", Target = InputControlType.Action1, Source = NativeInputDeviceProfile.Button(1) }, new InputControlMapping { Handle = "X", Target = InputControlType.Action4, Source = NativeInputDeviceProfile.Button(3) }, new InputControlMapping { Handle = "Y", Target = InputControlType.Action3, Source = NativeInputDeviceProfile.Button(4) }, new InputControlMapping { Handle = "Left Trigger", Target = InputControlType.LeftTrigger, Source = NativeInputDeviceProfile.Button(6) }, new InputControlMapping { Handle = "Right Trigger", Target = InputControlType.RightTrigger, Source = NativeInputDeviceProfile.Button(7) }, new InputControlMapping { Handle = "Select", Target = InputControlType.Select, Source = NativeInputDeviceProfile.Button(10) }, new InputControlMapping { Handle = "Start", Target = InputControlType.Start, Source = NativeInputDeviceProfile.Button(11) } }; base.AnalogMappings = new InputControlMapping[4] { new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne } }; }
public LogitechF310ModeXWindowsNativeProfile() { base.Name = "Logitech F310 Mode X Controller"; base.Meta = "Logitech F310 Mode X Controller on Windows"; base.DeviceClass = InputDeviceClass.Controller; base.DeviceStyle = InputDeviceStyle.Xbox360; base.IncludePlatforms = new string[1] { "Windows" }; Matchers = new NativeInputDeviceMatcher[1] { new NativeInputDeviceMatcher { VendorID = 1133, ProductID = 49693 } }; base.ButtonMappings = new InputControlMapping[10] { new InputControlMapping { Handle = "A", Target = InputControlType.Action1, Source = NativeInputDeviceProfile.Button(0) }, new InputControlMapping { Handle = "B", Target = InputControlType.Action2, Source = NativeInputDeviceProfile.Button(1) }, new InputControlMapping { Handle = "X", Target = InputControlType.Action3, Source = NativeInputDeviceProfile.Button(2) }, new InputControlMapping { Handle = "Y", Target = InputControlType.Action4, Source = NativeInputDeviceProfile.Button(3) }, new InputControlMapping { Handle = "Left Bumper", Target = InputControlType.LeftBumper, Source = NativeInputDeviceProfile.Button(4) }, new InputControlMapping { Handle = "Right Bumper", Target = InputControlType.RightBumper, Source = NativeInputDeviceProfile.Button(5) }, new InputControlMapping { Handle = "Back", Target = InputControlType.Back, Source = NativeInputDeviceProfile.Button(6) }, new InputControlMapping { Handle = "Start", Target = InputControlType.Start, Source = NativeInputDeviceProfile.Button(7) }, new InputControlMapping { Handle = "Left Stick Button", Target = InputControlType.LeftStickButton, Source = NativeInputDeviceProfile.Button(8) }, new InputControlMapping { Handle = "Right Stick Button", Target = InputControlType.RightStickButton, Source = NativeInputDeviceProfile.Button(9) } }; base.AnalogMappings = new InputControlMapping[14] { new InputControlMapping { Handle = "Left Stick Up", Target = InputControlType.LeftStickUp, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Down", Target = InputControlType.LeftStickDown, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Left", Target = InputControlType.LeftStickLeft, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Right", Target = InputControlType.LeftStickRight, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Up", Target = InputControlType.RightStickUp, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Down", Target = InputControlType.RightStickDown, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Left", Target = InputControlType.RightStickLeft, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Right", Target = InputControlType.RightStickRight, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Trigger", Target = InputControlType.LeftTrigger, Source = NativeInputDeviceProfile.Analog(4), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Trigger", Target = InputControlType.RightTrigger, Source = NativeInputDeviceProfile.Analog(4), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Analog(5), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Analog(5), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne } }; }
public BuffaloClassicMacProfile() { base.Name = "iBuffalo Classic Controller"; base.Meta = "iBuffalo Classic Controller on Mac"; base.DeviceClass = InputDeviceClass.Controller; base.IncludePlatforms = new string[1] { "OS X" }; Matchers = new NativeInputDeviceMatcher[1] { new NativeInputDeviceMatcher { VendorID = 1411, ProductID = 8288, VersionNumber = 256u } }; base.ButtonMappings = new InputControlMapping[8] { new InputControlMapping { Handle = "B", Target = InputControlType.Action1, Source = NativeInputDeviceProfile.Button(1) }, new InputControlMapping { Handle = "A", Target = InputControlType.Action2, Source = NativeInputDeviceProfile.Button(0) }, new InputControlMapping { Handle = "Y", Target = InputControlType.Action3, Source = NativeInputDeviceProfile.Button(3) }, new InputControlMapping { Handle = "X", Target = InputControlType.Action4, Source = NativeInputDeviceProfile.Button(2) }, new InputControlMapping { Handle = "Left Bumper", Target = InputControlType.LeftBumper, Source = NativeInputDeviceProfile.Button(4) }, new InputControlMapping { Handle = "Right Bumper", Target = InputControlType.RightBumper, Source = NativeInputDeviceProfile.Button(5) }, new InputControlMapping { Handle = "Select", Target = InputControlType.Select, Source = NativeInputDeviceProfile.Button(6) }, new InputControlMapping { Handle = "Start", Target = InputControlType.Start, Source = NativeInputDeviceProfile.Button(7) } }; base.AnalogMappings = new InputControlMapping[4] { new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne } }; }
public XboxOneEliteWindows10AENativeProfile() { base.Name = "Xbox One Elite Controller"; base.Meta = "Xbox One Elite Controller on Windows"; base.DeviceClass = InputDeviceClass.Controller; base.DeviceStyle = InputDeviceStyle.XboxOne; base.IncludePlatforms = new string[1] { "Windows" }; base.ExcludePlatforms = new string[2] { "Windows 7", "Windows 8" }; base.MinSystemBuildNumber = 14393; Matchers = new NativeInputDeviceMatcher[1] { new NativeInputDeviceMatcher { VendorID = 1118, ProductID = 739 } }; base.ButtonMappings = new InputControlMapping[11] { new InputControlMapping { Handle = "A", Target = InputControlType.Action1, Source = NativeInputDeviceProfile.Button(0) }, new InputControlMapping { Handle = "B", Target = InputControlType.Action2, Source = NativeInputDeviceProfile.Button(1) }, new InputControlMapping { Handle = "X", Target = InputControlType.Action3, Source = NativeInputDeviceProfile.Button(2) }, new InputControlMapping { Handle = "Y", Target = InputControlType.Action4, Source = NativeInputDeviceProfile.Button(3) }, new InputControlMapping { Handle = "Left Bumper", Target = InputControlType.LeftBumper, Source = NativeInputDeviceProfile.Button(4) }, new InputControlMapping { Handle = "Right Bumper", Target = InputControlType.RightBumper, Source = NativeInputDeviceProfile.Button(5) }, new InputControlMapping { Handle = "View", Target = InputControlType.View, Source = NativeInputDeviceProfile.Button(6) }, new InputControlMapping { Handle = "Menu", Target = InputControlType.Menu, Source = NativeInputDeviceProfile.Button(7) }, new InputControlMapping { Handle = "Left Stick Button", Target = InputControlType.LeftStickButton, Source = NativeInputDeviceProfile.Button(8) }, new InputControlMapping { Handle = "Right Stick Button", Target = InputControlType.RightStickButton, Source = NativeInputDeviceProfile.Button(9) }, new InputControlMapping { Handle = "Guide", Target = InputControlType.System, Source = NativeInputDeviceProfile.Button(10) } }; base.AnalogMappings = new InputControlMapping[14] { new InputControlMapping { Handle = "Left Stick Up", Target = InputControlType.LeftStickUp, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Down", Target = InputControlType.LeftStickDown, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Left", Target = InputControlType.LeftStickLeft, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Right", Target = InputControlType.LeftStickRight, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Up", Target = InputControlType.RightStickUp, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Down", Target = InputControlType.RightStickDown, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Left", Target = InputControlType.RightStickLeft, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Right", Target = InputControlType.RightStickRight, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Trigger", Target = InputControlType.LeftTrigger, Source = NativeInputDeviceProfile.Analog(4), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Trigger", Target = InputControlType.RightTrigger, Source = NativeInputDeviceProfile.Analog(4), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Analog(5), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Analog(5), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne } }; }
public XInputWindowsNativeProfile() { base.Name = "XInput Controller"; base.Meta = "XInput Controller on Windows"; base.DeviceClass = InputDeviceClass.Controller; base.DeviceStyle = InputDeviceStyle.XboxOne; base.IncludePlatforms = new string[1] { "Windows" }; Matchers = new NativeInputDeviceMatcher[1] { new NativeInputDeviceMatcher { DriverType = NativeDeviceDriverType.XInput } }; base.ButtonMappings = new InputControlMapping[14] { new InputControlMapping { Handle = "A", Target = InputControlType.Action1, Source = NativeInputDeviceProfile.Button(10) }, new InputControlMapping { Handle = "B", Target = InputControlType.Action2, Source = NativeInputDeviceProfile.Button(11) }, new InputControlMapping { Handle = "X", Target = InputControlType.Action3, Source = NativeInputDeviceProfile.Button(12) }, new InputControlMapping { Handle = "Y", Target = InputControlType.Action4, Source = NativeInputDeviceProfile.Button(13) }, new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Button(0) }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Button(1) }, new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Button(2) }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Button(3) }, new InputControlMapping { Handle = "Left Bumper", Target = InputControlType.LeftBumper, Source = NativeInputDeviceProfile.Button(8) }, new InputControlMapping { Handle = "Right Bumper", Target = InputControlType.RightBumper, Source = NativeInputDeviceProfile.Button(9) }, new InputControlMapping { Handle = "Left Stick Button", Target = InputControlType.LeftStickButton, Source = NativeInputDeviceProfile.Button(6) }, new InputControlMapping { Handle = "Right Stick Button", Target = InputControlType.RightStickButton, Source = NativeInputDeviceProfile.Button(7) }, new InputControlMapping { Handle = "Back", Target = InputControlType.Back, Source = NativeInputDeviceProfile.Button(5) }, new InputControlMapping { Handle = "Start", Target = InputControlType.Start, Source = NativeInputDeviceProfile.Button(4) } }; base.AnalogMappings = new InputControlMapping[10] { NativeInputDeviceProfile.LeftStickLeftMapping(0), NativeInputDeviceProfile.LeftStickRightMapping(0), NativeInputDeviceProfile.LeftStickUpMapping2(1), NativeInputDeviceProfile.LeftStickDownMapping2(1), NativeInputDeviceProfile.RightStickLeftMapping(2), NativeInputDeviceProfile.RightStickRightMapping(2), NativeInputDeviceProfile.RightStickUpMapping2(3), NativeInputDeviceProfile.RightStickDownMapping2(3), new InputControlMapping { Handle = "Left Trigger", Target = InputControlType.LeftTrigger, Source = NativeInputDeviceProfile.Analog(4), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Trigger", Target = InputControlType.RightTrigger, Source = NativeInputDeviceProfile.Analog(5), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne } }; }
public EightBitdoNES30ProWindowsNativeProfile() { base.Name = "8Bitdo NES30 Pro Controller"; base.Meta = "8Bitdo NES30 Pro Controller on Windows"; base.DeviceClass = InputDeviceClass.Controller; base.DeviceStyle = InputDeviceStyle.NintendoNES; Matchers = new NativeInputDeviceMatcher[2] { new NativeInputDeviceMatcher { VendorID = 11720, ProductID = 36865 }, new NativeInputDeviceMatcher { VendorID = 11720, ProductID = 14368 } }; base.ButtonMappings = new InputControlMapping[12] { new InputControlMapping { Handle = "A", Target = InputControlType.Action2, Source = NativeInputDeviceProfile.Button(0) }, new InputControlMapping { Handle = "B", Target = InputControlType.Action1, Source = NativeInputDeviceProfile.Button(1) }, new InputControlMapping { Handle = "X", Target = InputControlType.Action4, Source = NativeInputDeviceProfile.Button(3) }, new InputControlMapping { Handle = "Y", Target = InputControlType.Action3, Source = NativeInputDeviceProfile.Button(4) }, new InputControlMapping { Handle = "L1", Target = InputControlType.LeftBumper, Source = NativeInputDeviceProfile.Button(6) }, new InputControlMapping { Handle = "R1", Target = InputControlType.RightBumper, Source = NativeInputDeviceProfile.Button(7) }, new InputControlMapping { Handle = "L2", Target = InputControlType.LeftTrigger, Source = NativeInputDeviceProfile.Button(8) }, new InputControlMapping { Handle = "R2", Target = InputControlType.RightTrigger, Source = NativeInputDeviceProfile.Button(9) }, new InputControlMapping { Handle = "Select", Target = InputControlType.Select, Source = NativeInputDeviceProfile.Button(10) }, new InputControlMapping { Handle = "Start", Target = InputControlType.Start, Source = NativeInputDeviceProfile.Button(11) }, new InputControlMapping { Handle = "Left Stick Button", Target = InputControlType.LeftStickButton, Source = NativeInputDeviceProfile.Button(13) }, new InputControlMapping { Handle = "Right Stick Button", Target = InputControlType.RightStickButton, Source = NativeInputDeviceProfile.Button(14) } }; base.AnalogMappings = new InputControlMapping[12] { new InputControlMapping { Handle = "Right Stick Up", Target = InputControlType.RightStickUp, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Down", Target = InputControlType.RightStickDown, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Left", Target = InputControlType.RightStickLeft, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Right", Target = InputControlType.RightStickRight, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Up", Target = InputControlType.LeftStickUp, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Down", Target = InputControlType.LeftStickDown, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Left", Target = InputControlType.LeftStickLeft, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Right", Target = InputControlType.LeftStickRight, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Analog(7), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Analog(7), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne } }; }
public PCTWINSHOCKWindowsNativeProfile() { base.Name = "PC TWIN SHOCK"; base.Meta = "PC TWIN SHOCK on Windows"; base.DeviceClass = InputDeviceClass.Controller; base.DeviceStyle = InputDeviceStyle.PlayStation2; base.IncludePlatforms = new string[1] { "Windows" }; Matchers = new NativeInputDeviceMatcher[1] { new NativeInputDeviceMatcher { VendorID = 121, ProductID = 6 } }; base.ButtonMappings = new InputControlMapping[12] { new InputControlMapping { Handle = "4", Target = InputControlType.Action3, Source = NativeInputDeviceProfile.Button(3) }, new InputControlMapping { Handle = "3", Target = InputControlType.Action1, Source = NativeInputDeviceProfile.Button(2) }, new InputControlMapping { Handle = "2", Target = InputControlType.Action2, Source = NativeInputDeviceProfile.Button(1) }, new InputControlMapping { Handle = "1", Target = InputControlType.Action4, Source = NativeInputDeviceProfile.Button(0) }, new InputControlMapping { Handle = "Left Bumper", Target = InputControlType.LeftBumper, Source = NativeInputDeviceProfile.Button(6) }, new InputControlMapping { Handle = "Right Bumper", Target = InputControlType.RightBumper, Source = NativeInputDeviceProfile.Button(7) }, new InputControlMapping { Handle = "Left Trigger", Target = InputControlType.LeftTrigger, Source = NativeInputDeviceProfile.Button(4) }, new InputControlMapping { Handle = "Right Trigger", Target = InputControlType.RightTrigger, Source = NativeInputDeviceProfile.Button(5) }, new InputControlMapping { Handle = "Select", Target = InputControlType.Select, Source = NativeInputDeviceProfile.Button(8) }, new InputControlMapping { Handle = "Start", Target = InputControlType.Start, Source = NativeInputDeviceProfile.Button(9) }, new InputControlMapping { Handle = "Left Stick Button", Target = InputControlType.LeftStickButton, Source = NativeInputDeviceProfile.Button(10) }, new InputControlMapping { Handle = "Right Stick Button", Target = InputControlType.RightStickButton, Source = NativeInputDeviceProfile.Button(11) } }; base.AnalogMappings = new InputControlMapping[12] { new InputControlMapping { Handle = "Right Stick Up", Target = InputControlType.RightStickUp, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Down", Target = InputControlType.RightStickDown, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Left", Target = InputControlType.RightStickLeft, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Right", Target = InputControlType.RightStickRight, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Up", Target = InputControlType.LeftStickUp, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Down", Target = InputControlType.LeftStickDown, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Left", Target = InputControlType.LeftStickLeft, Source = NativeInputDeviceProfile.Analog(4), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Right", Target = InputControlType.LeftStickRight, Source = NativeInputDeviceProfile.Analog(4), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Analog(5), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Analog(5), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne } }; }
public RazerServalWindowsNativeProfile() { base.Name = "Razer Serval Controller"; base.Meta = "Razer Serval Controller on Windows"; base.DeviceClass = InputDeviceClass.Controller; base.IncludePlatforms = new string[1] { "Windows" }; Matchers = new NativeInputDeviceMatcher[1] { new NativeInputDeviceMatcher { VendorID = 5426, ProductID = 2304 } }; base.ButtonMappings = new InputControlMapping[12] { new InputControlMapping { Handle = "A", Target = InputControlType.Action1, Source = NativeInputDeviceProfile.Button(0) }, new InputControlMapping { Handle = "B", Target = InputControlType.Action2, Source = NativeInputDeviceProfile.Button(1) }, new InputControlMapping { Handle = "X", Target = InputControlType.Action3, Source = NativeInputDeviceProfile.Button(2) }, new InputControlMapping { Handle = "Y", Target = InputControlType.Action4, Source = NativeInputDeviceProfile.Button(3) }, new InputControlMapping { Handle = "Left Bumper", Target = InputControlType.LeftBumper, Source = NativeInputDeviceProfile.Button(4) }, new InputControlMapping { Handle = "Right Bumper", Target = InputControlType.RightBumper, Source = NativeInputDeviceProfile.Button(5) }, new InputControlMapping { Handle = "Back", Target = InputControlType.Back, Source = NativeInputDeviceProfile.Button(6) }, new InputControlMapping { Handle = "Options", Target = InputControlType.Options, Source = NativeInputDeviceProfile.Button(7) }, new InputControlMapping { Handle = "Left Stick Button", Target = InputControlType.LeftStickButton, Source = NativeInputDeviceProfile.Button(8) }, new InputControlMapping { Handle = "Right Stick Button", Target = InputControlType.RightStickButton, Source = NativeInputDeviceProfile.Button(9) }, new InputControlMapping { Handle = "Start", Target = InputControlType.Start, Source = NativeInputDeviceProfile.Button(11) }, new InputControlMapping { Handle = "Select", Target = InputControlType.Select, Source = NativeInputDeviceProfile.Button(12) } }; base.AnalogMappings = new InputControlMapping[12] { new InputControlMapping { Handle = "Right Stick Up", Target = InputControlType.RightStickUp, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Down", Target = InputControlType.RightStickDown, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Left", Target = InputControlType.RightStickLeft, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Right", Target = InputControlType.RightStickRight, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Up", Target = InputControlType.LeftStickUp, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Down", Target = InputControlType.LeftStickDown, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Left", Target = InputControlType.LeftStickLeft, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Right", Target = InputControlType.LeftStickRight, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Analog(7), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Analog(7), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne } }; }
public XboxOneWirelessAdapterWindowsNativeProfile() { base.Name = "Xbox One Controller"; base.Meta = "Xbox One Controller on Windows"; base.DeviceClass = InputDeviceClass.Controller; base.DeviceStyle = InputDeviceStyle.XboxOne; base.IncludePlatforms = new string[2] { "Windows 7", "Windows 8" }; Matchers = new NativeInputDeviceMatcher[1] { new NativeInputDeviceMatcher { VendorID = 1118, ProductID = 767 } }; base.ButtonMappings = new InputControlMapping[10] { new InputControlMapping { Handle = "A", Target = InputControlType.Action1, Source = NativeInputDeviceProfile.Button(0) }, new InputControlMapping { Handle = "B", Target = InputControlType.Action2, Source = NativeInputDeviceProfile.Button(1) }, new InputControlMapping { Handle = "X", Target = InputControlType.Action3, Source = NativeInputDeviceProfile.Button(2) }, new InputControlMapping { Handle = "Y", Target = InputControlType.Action4, Source = NativeInputDeviceProfile.Button(3) }, new InputControlMapping { Handle = "Left Bumper", Target = InputControlType.LeftBumper, Source = NativeInputDeviceProfile.Button(4) }, new InputControlMapping { Handle = "Right Bumper", Target = InputControlType.RightBumper, Source = NativeInputDeviceProfile.Button(5) }, new InputControlMapping { Handle = "View", Target = InputControlType.View, Source = NativeInputDeviceProfile.Button(6) }, new InputControlMapping { Handle = "Menu", Target = InputControlType.Menu, Source = NativeInputDeviceProfile.Button(7) }, new InputControlMapping { Handle = "Left Stick Button", Target = InputControlType.LeftStickButton, Source = NativeInputDeviceProfile.Button(8) }, new InputControlMapping { Handle = "Right Stick Button", Target = InputControlType.RightStickButton, Source = NativeInputDeviceProfile.Button(9) } }; base.AnalogMappings = new InputControlMapping[14] { new InputControlMapping { Handle = "Left Stick Up", Target = InputControlType.LeftStickUp, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Down", Target = InputControlType.LeftStickDown, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Left", Target = InputControlType.LeftStickLeft, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Right", Target = InputControlType.LeftStickRight, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Up", Target = InputControlType.RightStickUp, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Down", Target = InputControlType.RightStickDown, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Left", Target = InputControlType.RightStickLeft, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Right", Target = InputControlType.RightStickRight, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Trigger", Target = InputControlType.LeftTrigger, Source = NativeInputDeviceProfile.Analog(4), SourceRange = InputRange.MinusOneToOne, TargetRange = InputRange.ZeroToOne, IgnoreInitialZeroValue = true }, new InputControlMapping { Handle = "Right Trigger", Target = InputControlType.RightTrigger, Source = NativeInputDeviceProfile.Analog(5), SourceRange = InputRange.MinusOneToOne, TargetRange = InputRange.ZeroToOne, IgnoreInitialZeroValue = true }, new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Analog(7), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Analog(7), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne } }; }
public PlayStation4WindowsNativeProfile() { 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" }; Matchers = new NativeInputDeviceMatcher[3] { new NativeInputDeviceMatcher { VendorID = 1356, ProductID = 1476 }, new NativeInputDeviceMatcher { VendorID = 1356, ProductID = 2508 }, new NativeInputDeviceMatcher { VendorID = 1356, ProductID = 2976 } }; base.ButtonMappings = new InputControlMapping[12] { new InputControlMapping { Handle = "Square", Target = InputControlType.Action3, Source = NativeInputDeviceProfile.Button(0) }, new InputControlMapping { Handle = "Cross", Target = InputControlType.Action1, Source = NativeInputDeviceProfile.Button(1) }, new InputControlMapping { Handle = "Circle", Target = InputControlType.Action2, Source = NativeInputDeviceProfile.Button(2) }, new InputControlMapping { Handle = "Triangle", Target = InputControlType.Action4, Source = NativeInputDeviceProfile.Button(3) }, new InputControlMapping { Handle = "Left Bumper", Target = InputControlType.LeftBumper, Source = NativeInputDeviceProfile.Button(4) }, new InputControlMapping { Handle = "Right Bumper", Target = InputControlType.RightBumper, Source = NativeInputDeviceProfile.Button(5) }, new InputControlMapping { Handle = "Share", Target = InputControlType.Share, Source = NativeInputDeviceProfile.Button(8) }, new InputControlMapping { Handle = "Options", Target = InputControlType.Options, Source = NativeInputDeviceProfile.Button(9) }, new InputControlMapping { Handle = "Left Stick Button", Target = InputControlType.LeftStickButton, Source = NativeInputDeviceProfile.Button(10) }, new InputControlMapping { Handle = "Right Stick Button", Target = InputControlType.RightStickButton, Source = NativeInputDeviceProfile.Button(11) }, new InputControlMapping { Handle = "System", Target = InputControlType.System, Source = NativeInputDeviceProfile.Button(12) }, new InputControlMapping { Handle = "Touch Pad Tap", Target = InputControlType.TouchPadButton, Source = NativeInputDeviceProfile.Button(13) } }; base.AnalogMappings = new InputControlMapping[14] { new InputControlMapping { Handle = "Right Stick Up", Target = InputControlType.RightStickUp, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Down", Target = InputControlType.RightStickDown, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Left", Target = InputControlType.RightStickLeft, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Right", Target = InputControlType.RightStickRight, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Up", Target = InputControlType.LeftStickUp, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Down", Target = InputControlType.LeftStickDown, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Left", Target = InputControlType.LeftStickLeft, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Right", Target = InputControlType.LeftStickRight, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Trigger", Target = InputControlType.RightTrigger, Source = NativeInputDeviceProfile.Analog(4), SourceRange = InputRange.MinusOneToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Trigger", Target = InputControlType.LeftTrigger, Source = NativeInputDeviceProfile.Analog(5), SourceRange = InputRange.MinusOneToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Analog(6), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Analog(7), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Analog(7), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne } }; }
public AirFloPS3WindowsNativeProfile() { base.Name = "Air Flo PS3 Controller"; base.Meta = "Air Flo PS3 Controller on Windows"; base.DeviceClass = InputDeviceClass.Controller; base.DeviceStyle = InputDeviceStyle.PlayStation3; base.IncludePlatforms = new string[1] { "Windows" }; Matchers = new NativeInputDeviceMatcher[1] { new NativeInputDeviceMatcher { VendorID = 8406, ProductID = 22301 } }; base.ButtonMappings = new InputControlMapping[13] { new InputControlMapping { Handle = "Square", Target = InputControlType.Action3, Source = NativeInputDeviceProfile.Button(0) }, new InputControlMapping { Handle = "Cross", Target = InputControlType.Action1, Source = NativeInputDeviceProfile.Button(1) }, new InputControlMapping { Handle = "Circle", Target = InputControlType.Action2, Source = NativeInputDeviceProfile.Button(2) }, new InputControlMapping { Handle = "Triangle", Target = InputControlType.Action4, Source = NativeInputDeviceProfile.Button(3) }, new InputControlMapping { Handle = "Left Bumper", Target = InputControlType.LeftBumper, Source = NativeInputDeviceProfile.Button(4) }, new InputControlMapping { Handle = "Right Bumper", Target = InputControlType.RightBumper, Source = NativeInputDeviceProfile.Button(5) }, new InputControlMapping { Handle = "Left Trigger", Target = InputControlType.LeftTrigger, Source = NativeInputDeviceProfile.Button(6) }, new InputControlMapping { Handle = "Right Trigger", Target = InputControlType.RightTrigger, Source = NativeInputDeviceProfile.Button(7) }, new InputControlMapping { Handle = "Select", Target = InputControlType.Select, Source = NativeInputDeviceProfile.Button(8) }, new InputControlMapping { Handle = "Start", Target = InputControlType.Start, Source = NativeInputDeviceProfile.Button(9) }, new InputControlMapping { Handle = "Left Stick Button", Target = InputControlType.LeftStickButton, Source = NativeInputDeviceProfile.Button(10) }, new InputControlMapping { Handle = "Right Stick Button", Target = InputControlType.RightStickButton, Source = NativeInputDeviceProfile.Button(11) }, new InputControlMapping { Handle = "Home", Target = InputControlType.Home, Source = NativeInputDeviceProfile.Button(12) } }; base.AnalogMappings = new InputControlMapping[12] { new InputControlMapping { Handle = "Right Stick Up", Target = InputControlType.RightStickUp, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Down", Target = InputControlType.RightStickDown, Source = NativeInputDeviceProfile.Analog(0), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Left", Target = InputControlType.RightStickLeft, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Right Stick Right", Target = InputControlType.RightStickRight, Source = NativeInputDeviceProfile.Analog(1), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Up", Target = InputControlType.LeftStickUp, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Down", Target = InputControlType.LeftStickDown, Source = NativeInputDeviceProfile.Analog(2), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Left", Target = InputControlType.LeftStickLeft, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "Left Stick Right", Target = InputControlType.LeftStickRight, Source = NativeInputDeviceProfile.Analog(3), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Left", Target = InputControlType.DPadLeft, Source = NativeInputDeviceProfile.Analog(4), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Right", Target = InputControlType.DPadRight, Source = NativeInputDeviceProfile.Analog(4), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Up", Target = InputControlType.DPadUp, Source = NativeInputDeviceProfile.Analog(5), SourceRange = InputRange.ZeroToOne, TargetRange = InputRange.ZeroToOne }, new InputControlMapping { Handle = "DPad Down", Target = InputControlType.DPadDown, Source = NativeInputDeviceProfile.Analog(5), SourceRange = InputRange.ZeroToMinusOne, TargetRange = InputRange.ZeroToOne } }; }