ControllerInputManager.AddKeyboard1Controller C# (CSharp) Method

AddKeyboard1Controller() public method

public AddKeyboard1Controller ( ) : void
return void
    public void AddKeyboard1Controller()
    {
        Dictionary<KeyboardController.eSimulatedAxis, string> axis = new Dictionary<KeyboardController.eSimulatedAxis, string>();
        Dictionary<KeyboardController.eKeyboardButtonId, string> buttons = new Dictionary<KeyboardController.eKeyboardButtonId, string>();

        axis.Add(KeyboardController.eSimulatedAxis.UP_LEFT_JOYSTICK, "w");
        axis.Add(KeyboardController.eSimulatedAxis.LEFT_LEFT_JOYSTICK, "a");
        axis.Add(KeyboardController.eSimulatedAxis.DOWN_LEFT_JOYSTICK, "s");
        axis.Add(KeyboardController.eSimulatedAxis.RIGHT_LEFT_JOYSTICK, "d");

        axis.Add(KeyboardController.eSimulatedAxis.UP_RIGHT_JOYSTICK, "up");
        axis.Add(KeyboardController.eSimulatedAxis.LEFT_RIGHT_JOYSTICK, "left");
        axis.Add(KeyboardController.eSimulatedAxis.DOWN_RIGHT_JOYSTICK, "down");
        axis.Add(KeyboardController.eSimulatedAxis.RIGHT_RIGHT_JOYSTICK, "right");

        buttons.Add(KeyboardController.eKeyboardButtonId.ACTION, "space");
        buttons.Add(KeyboardController.eKeyboardButtonId.L1, "space");
        buttons.Add(KeyboardController.eKeyboardButtonId.R1, "return");

        KeyboardController controller = new KeyboardController(axis, buttons);
        m_Keyboard1ControllerId = ControllerInputManager.Instance.AddController(controller);
    }