static public GamepadEvent <T> GetPreviousEvent <T>(this GamepadEventHistory <T> item) { return(item.GetPastEvents(1).GetFirst()); }
static public IEnumerable <GamepadEvent <T> > GetCurrentAndPastEvents <T>(this GamepadEventHistory <T> item, int count) { return(item.GetPastEvents(count - 1).Append(item.GetCurrentEvent())); }
static public IEnumerable <T> GetPastValues <T>(this GamepadEventHistory <T> item, int count) { return(item.GetPastEvents(count).Convert(e => e.GetValue())); }