static public bool AreCurrentAndPastEvents <T, J>(this GamepadEventHistory <T> item, ICollection <J> sequence, Relation <GamepadEvent <T>, J> relation) { return(item.GetCurrentAndPastEvents(sequence.Count) .AreElements(sequence, relation)); }
static public IEnumerable <T> GetCurrentAndPastValues <T>(this GamepadEventHistory <T> item, int count) { return(item.GetCurrentAndPastEvents(count).Convert(e => e.GetValue())); }