Ejemplo n.º 1
0
 // -----------------------
 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);
     }
 }
Ejemplo n.º 2
0
    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;
    }