Beispiel #1
0
 // InputManager can't be changed in-game and the numbering of joystick isn't always obvious;
 // this adds all the possible variations (joysticks 1 to 16) for the given axis to InputManager
 private void AddAxisForAllPossibleJoysticks()
 {
     for (int i = 1; i <= 16; i++)   // TODO: move this loop to InputAxisDefiner for consistency?
     {
         InputAxisDefiner.AddNewAxis(CreateAxisData(i));
     }
 }
Beispiel #2
0
 private void ShowAxisList()
 {
     string[] axisNames = InputAxisDefiner.GetUniqueAxisNames().ToArray();
     _chosenAxis = EditorGUILayout.Popup(_chosenAxis, axisNames);
 }