public void Setup()
 {
     tracker = new ButtonTracker();
     button1 = new Button();
     button2 = new Button();
     button3 = new Button();
 }
示例#2
0
 protected void Initialize()
 {
     Tracker = new ButtonTracker();
     RecordKeys();
     EnableValidKeys();
 }
示例#3
0
 /// <summary>Checks if the given mouse button is unique for this frame.</summary>
 public static bool IsUnique(MouseButton button) => !ButtonTracker.ContainsKey(button) || ButtonTracker[button] != InputHelper.CurrentFrame;