protected virtual void InitController() { _inputNames = new List <string>(new[] { "UP_DPAD", "DOWN_DPAD", "LEFT_DPAD", "RIGHT_DPAD", "JOY_LEFT", "JOY_RIGHT", "A", "B", "X", "Y", "L", "R", "L2", "R2", "CLICK_L", "CLICK_R", "START", "SELECT" }); _leftStick = new Stick(XAxisLeft, YAxisLeft); _rightStick = new Stick(XAxisRight, YAxisRight); _actionDPad = new DpadButton(UpDpad, DownDpad, LeftDpad, RightDpad); controllerInitted = true; }
override protected void InitController() { _inputNames = new List <string>(new[] { "UP_DPAD", "DOWN_DPAD", "LEFT_DPAD", "RIGHT_DPAD", "JOY_LEFT", "JOY_RIGHT", "A", "B", "X", "Y", "L", "R", "L2", "R2", "CLICK_L", "CLICK_R", "START", "SELECT", "J_TOGGLE_L", "J_TOGGLE_R", "ALT_A" }); _leftStick = new Stick(XAxisLeft, YAxisLeft, ToggleLeftStick); _rightStick = new Stick(XAxisRight, YAxisRight, ToggleRightStick); _actionDPad = new DpadButton(UpDpad, DownDpad, LeftDpad, RightDpad); combinedA = new MultiButton(new List <IButton> { MainA, AltA }); controllerInitted = true; }
protected override void InitController() { _inputNames = new List <string>(new[] { "UP_DPAD", "DOWN_DPAD", "LEFT_DPAD", "RIGHT_DPAD", "JOY_LEFT", "JOY_RIGHT", "A", "B", "X", "Y", "L", "R", "L2", "R2", "CLICK_L", "CLICK_R", "START", "SELECT" }); LeftStick = new Stick(XAxisLeft, YAxisLeft); RightStick = new Stick(XAxisRight, YAxisRight); _actionDPad = new DpadButton(UpDpad, DownDpad, LeftDpad, RightDpad); _keyboardDPad = new DpadButton(_upDpad, _downDPad, _leftDPad, _rightDPad); controllerInitted = true; _dpadActionStick = _actionDPad.GetEmulatedJoystick(); _dpadStick = _keyboardDPad.GetEmulatedJoystick(); _globalActionStick = new AnalogueInput(); _globalStick = new AnalogueInput(); }