public static IButtonInputSignature CreateAxleButtonSignature <TInputId>(this IInputProfile <TInputId> profile, string id, TInputId axis, AxleValueConsideration consideration = AxleValueConsideration.Positive, Joystick joystick = Joystick.All, float axleButtonDeadZone = InputUtil.DEFAULT_AXLEBTNDEADZONE) where TInputId : struct, System.IConvertible { if (profile == null) { return(null); } return(new DelegatedAxleButtonInputSignature(id, profile.GetMapping(axis).CreateAxisDelegate(joystick), consideration, axleButtonDeadZone)); }
public static IDualAxleInputSignature CreateDualAxisSignature <TInputId>(this IInputProfile <TInputId> profile, string id, TInputId axisX, TInputId axisY, Joystick joystick = Joystick.All) where TInputId : struct, System.IConvertible { return(new DelegatedDualAxleInputSignature(id, profile.GetMapping(axisX).CreateAxisDelegate(joystick), profile.GetMapping(axisY).CreateAxisDelegate(joystick))); }
public static IButtonInputSignature CreateButtonSignature <TInputId>(this IInputProfile <TInputId> profile, string id, TInputId button, Joystick joystick = Joystick.All) where TInputId : struct, System.IConvertible { return(new DelegatedButtonInputSignature(id, profile.GetMapping(button).CreateButtonDelegate(joystick))); }
public static AxisDelegate CreateAxisDelegate <TInputId>(this IInputProfile <TInputId> profile, TInputId axis, Joystick joystick = Joystick.All) where TInputId : struct, System.IConvertible { return(profile.GetMapping(axis).CreateAxisDelegate(joystick)); }
//extension public static ButtonDelegate CreateButtonDelegate <TInputId>(this IInputProfile <TInputId> profile, TInputId button, Joystick joystick = Joystick.All) where TInputId : struct, System.IConvertible { return(profile.GetMapping(button).CreateButtonDelegate(joystick)); }
public ConfigurableInputProfile(IInputProfile <TInputId> innerProfile) { _innerProfile = innerProfile; }
public ConfigurableXboxInputProfile(IInputProfile <XboxInputId> innerProfile) : base(innerProfile) { }