Forked from
Reform / reform
Source project has a limited visibility.
-
Valtteri Koskivuori authored
Instead of skipping first 4 readings, which incurs a slight latency penalty at the start of a touch event, we clear lastx/lasty values as touch events end, and check them before computing deltas. This way, at the start of every touch event, we only lose one potential delta, and then start tracking right away after that. It should be noted, that manual delta computation is only used for multi-finger gesture tracking at the moment, as the Azoteq sensor provides smooth relative delta values for us in the case that only one finger is active.
Valtteri Koskivuori authoredInstead of skipping first 4 readings, which incurs a slight latency penalty at the start of a touch event, we clear lastx/lasty values as touch events end, and check them before computing deltas. This way, at the start of every touch event, we only lose one potential delta, and then start tracking right away after that. It should be noted, that manual delta computation is only used for multi-finger gesture tracking at the moment, as the Azoteq sensor provides smooth relative delta values for us in the case that only one finger is active.