// ----------------------- static private string FormatBindingMenuLabel(InputBindingBase binding, string name) { if (!binding.enabled) { return(name + " (Disabled)"); } if (!binding.IsEnabledInHierarchy()) { return(name + " (Disabled by hierarchy)"); } else { return(name); } }
public InputScanSetting(InputScanType t, InputBindingBase bindings) { ScanType = t; InputBinding = bindings; CurJoystickButton = JoystickButton.None; CurKeyCode = KeyCode.None; CurJoystickIndex = -1; CurJoystickAxis = -1; CurMouseAxis = -1; IsPositive = true; IsInvert = false; }