public JoystickAxis(string axisName, float threshold) { this.axisName = axisName; this.joystick = InputUtility.AxisToJoystick(axisName); this.axis = InputUtility.AxisToJoystickAxis(axisName); this.threshold = threshold; }
public JoystickAxis(Joysticks joystick, JoystickAxes axis, float threshold) { this.joystick = joystick; this.axis = axis; this.axisName = InputUtility.JoystickInputToAxis(joystick, axis); this.threshold = threshold; }
public JoystickButton(KeyCode key) { this.key = key; this.joystick = InputUtility.KeyToJoystick(key); this.button = InputUtility.KeyToJoystickButton(key); }
public JoystickButton(Joysticks joystick, JoystickButtons button) { this.joystick = joystick; this.button = button; this.key = InputUtility.JoystickInputToKey(joystick, button); }