Exemplo n.º 1
0
 public static void OnEnable(IList <AxBind> AxisBinds)
 {
     if (AxisBinds.Count > 0 && !AppInput.HasAxisBind(AxisBinds[0]))
     {
         for (int i = 0; i < AxisBinds.Count; ++i)
         {
             AppInput.AddListener(AxisBinds[i]);
         }
     }
 }
Exemplo n.º 2
0
 public static void OnDisable(IList <AxBind> AxisBinds)
 {
     if (AppInput.IsQuitting)
     {
         return;
     }
     if (AxisBinds.Count > 0 && AppInput.HasAxisBind(AxisBinds[0]))
     {
         for (int i = 0; i < AxisBinds.Count; ++i)
         {
             AppInput.RemoveListener(AxisBinds[i]);
         }
     }
 }
Exemplo n.º 3
0
 private void OnEnable()
 {
     if (keyBinds.Count > 0 && !AppInput.HasKeyBind(keyBinds[0]))
     {
         for (int i = 0; i < keyBinds.Count; ++i)
         {
             AppInput.AddListener(keyBinds[i]);
         }
     }
     if (axisBinds.Count > 0 && !AppInput.HasAxisBind(axisBinds[0]))
     {
         for (int i = 0; i < axisBinds.Count; ++i)
         {
             AppInput.AddListener(axisBinds[i]);
         }
     }
 }
Exemplo n.º 4
0
 private void OnDisable()
 {
     if (AppInput.IsQuitting)
     {
         return;
     }
     if (keyBinds.Count > 0 && AppInput.HasKeyBind(keyBinds[0]))
     {
         for (int i = 0; i < keyBinds.Count; ++i)
         {
             AppInput.RemoveListener(keyBinds[i]);
         }
     }
     if (axisBinds.Count > 0 && AppInput.HasAxisBind(axisBinds[0]))
     {
         for (int i = 0; i < axisBinds.Count; ++i)
         {
             AppInput.RemoveListener(axisBinds[i]);
         }
     }
 }