1 using System.Collections.Generic;
7 private bool hit, hitQueue;
8 private bool held, heldQueue;
15 this.inputType = inputType;
18 private KeyOrMouse binding
20 get {
return GameSettings.CurrentConfig.KeyMap.Bindings[inputType]; }
23 private static bool AllowOnGUI(
InputType input)
29 return GUI.MouseOn ==
null;
35 public KeyOrMouse State
37 get {
return binding; }
42 hit = binding.IsHit() && AllowOnGUI(inputType);
43 if (hit) hitQueue =
true;
45 held = binding.IsDown() && AllowOnGUI(inputType);
46 if (held) heldQueue =
true;
77 if (hit) hitQueue =
true;
78 if (held) heldQueue =
true;
83 bool value = hitQueue;
90 bool value = heldQueue;
97 get {
return heldQueue; }
102 get {
return hitQueue; }
void SetState(bool hit, bool held)