示例#1
0
 /// <summary>Checks if the given mouse sensor is unique for this frame.</summary>
 public static bool IsUnique(MouseSensor sensor) => !SensorTracker.ContainsKey(sensor) || SensorTracker[sensor] != InputHelper.CurrentFrame;
示例#2
0
 /// <summary>Mark the mouse sensor as used for this frame.</summary>
 public static void Consume(MouseSensor sensor)
 {
     SensorTracker[sensor] = InputHelper.CurrentFrame;
 }