// Token: 0x06000EA9 RID: 3753 RVA: 0x0005AF50 File Offset: 0x00059150 private void AddKeyCodesToButtonInput(KeyCode[] keyCodes, CompoundButtonInput buttonInput) { foreach (KeyCode keyCode in keyCodes) { buttonInput.Add(new KeyCodeButtonInput(keyCode)); } }
public CompoundInputProvider(params IInputProvider[] inputProviders) { this.triggerButtonInput = new CompoundButtonInput(); this.button1Input = new CompoundButtonInput(); this.button2Input = new CompoundButtonInput(); if (inputProviders != null) { for (int i = 0; i < inputProviders.Length; i++) { this.AddInputProvider(inputProviders[i]); } } }
// Token: 0x06000EB2 RID: 3762 RVA: 0x0005B598 File Offset: 0x00059798 private bool KeyboardUsedLast(IButtonInput iButtonInput) { if (iButtonInput is KeyCodeButtonInput) { return(true); } AxisButtonInput axisButtonInput = iButtonInput as AxisButtonInput; if (axisButtonInput != null) { return(this.KeyboardUsedLast(axisButtonInput.GetAxisInput())); } CompoundButtonInput compoundButtonInput = iButtonInput as CompoundButtonInput; if (compoundButtonInput != null) { return(this.KeyboardUsedLast(compoundButtonInput.GetLastPressed())); } return(iButtonInput is ControllerButtonInput && false); }
// Token: 0x06000EB5 RID: 3765 RVA: 0x0005B6A8 File Offset: 0x000598A8 public void AddControllerButtonsToButtonInput(PlayerInputRebinding.ControllerButton[] buttons, CompoundButtonInput buttonInput) { for (int i = 0; i < buttons.Length; i++) { buttonInput.Add(this.ControllerButtonToButtonInput(buttons[i])); } }