1. A device comprising: a memory configured to store: data corresponding to a first detected event associated with a first input received by a user device and data corresponding to a second detected event associated with a second input received by the user device, and data associated with a plurality of predicted events that are generated based on the first detected event and that predict inputs received by the user device, wherein each predicted event is associated with a corresponding prediction time; and a processor configured to: determine whether the second detected event that corresponds to one of the predicted events occurs during the prediction time of the one of the predicted events, determine that the one of the predicted events is invalid based on a determination that the second detected event and the corresponding one of the predicted events differ by a predetermined threshold, select predicted events from the plurality of predicted events based on determining that the one of the predicted events is invalid, wherein the selected predicted events are associated with the prediction times that occur before the prediction time of the one of the predicted events, and cause the selected predicted events to be discarded.