public UnknownDeviceProfile(string joystickName) { Name = "Unknown Device"; if (joystickName != "") { Name += " (" + joystickName + ")"; } Meta = ""; Sensitivity = 1.0f; DeadZone = 0.2f; SupportedPlatforms = null; JoystickNames = new[] { joystickName }; AnalogMappings = new InputControlAnalogMapping[MaxUnityAnalogs]; for (int i = 0; i < MaxUnityAnalogs; i++) { AnalogMappings[i] = new InputControlAnalogMapping(i); } ButtonMappings = new InputControlButtonMapping[MaxUnityButtons]; for (int i = 0; i < MaxUnityButtons; i++) { ButtonMappings[i] = new InputControlButtonMapping(i); } }
public UnknownDeviceProfile( string joystickName ) { Name = "Unknown Device"; if (joystickName != "") { Name += " (" + joystickName + ")"; } Meta = ""; Sensitivity = 1.0f; DeadZone = 0.2f; SupportedPlatforms = null; JoystickNames = new[] { joystickName }; AnalogMappings = new InputControlAnalogMapping[ MaxUnityAnalogs ]; for (int i = 0; i < MaxUnityAnalogs; i++) { AnalogMappings[i] = new InputControlAnalogMapping( i ); } ButtonMappings = new InputControlButtonMapping[ MaxUnityButtons ]; for (int i = 0; i < MaxUnityButtons; i++) { ButtonMappings[i] = new InputControlButtonMapping( i ); } }