private void GenerateInputManagerEntries() { foreach (var controllerInput in _xboxControllerInputs) { InputManagerUtils.AddAxis(controllerInput); } foreach (var controllerInput in _mouseKeyboardControllerInputs) { InputManagerUtils.AddAxis(controllerInput); } }
private static bool AxisDefined(string axisName, string positive) { var inputs = GetAllInputs(); for (int i = 0, n = inputs.arraySize; i < n; i++) { var input = InputManagerUtils.Deserialize(inputs.GetArrayElementAtIndex(i)); if (input.name == axisName && input.positiveButton == positive) { return(true); } } return(false); }
private void ClearAllInputManagerEntries() { InputManagerUtils.ClearAllInputs(); }