public void Start() { inputkey = new InputKeyBoard(); moveVec = Vector3.zero; inputkey.Start(); }
/// <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(); } }
public ValidAction(InputKeyBoard k, string m) { _userInput = k; _action.Add(m); _pressed = false; }