예제 #1
0
    public void Start()
    {
        inputkey = new InputKeyBoard();

        moveVec = Vector3.zero;

        inputkey.Start();
    }
예제 #2
0
    /// <summary>
    /// custom constructor, set up keyboard and empty input handlers for gamepad
    /// </summary>
    private InputData()
    {
        // device 0 is always keyboard
        inputDevices[0] = new InputKeyBoard();

        // gamepads take up the rest of the array
        for (int i = 1; i < inputDevices.Length; i++)
        {
            inputDevices[i] = new InputGamepad();
        }
    }
예제 #3
0
 public ValidAction(InputKeyBoard k, string m)
 {
     _userInput = k;
     _action.Add(m);
     _pressed = false;
 }