///<summary>Joystick, those nubs on the controller, analogue, /// requires 2 axises to be created and requires to be updated via .Update()</summary> /// <param name="xAxisNameInput"> Set in IButton with axis information.</param> /// <param name="yAxisNameInput"> Set in IButton with axis information.</param> /// <param name="toggle"> OPTIONAL: Set in IButton with Boolean to turn on the Stick.</param> public Stick(IButton xAxisNameInput, IButton yAxisNameInput, IButton toggle = null) { _XAxisButton = xAxisNameInput; _YAxisButton = yAxisNameInput; if (toggle != null) { toggleButton = toggle; } dPadFromJStick = new DirectionalKeys(); }
///<summary>Joystick, those nubs on the controller, analogue, /// requires 2 axises to be created and requires to be updated via .Update()</summary> public Stick() { isJoystickUndefined = true; dPadFromJStick = new DirectionalKeys(); }
public JoystickEmulator(DirectionalKeys KeysToEmulate) { directionalKeys = KeysToEmulate; _joystick = new AnalogueInput(); }