~alan-griffiths/mir/fix-1583536

Viewing all changes in revision 3506.

Fix not-really-resampling-but-pretending case in InputConsumer

The input resampling batches together InputMessages that up to one relevant state change and fall into a certain time frame. When deciding wether the last InputMessage must be interpolated with the upcoming InputMessage, the previous code used to just add the last coords of the last InputMessage a second time. That makes the cursor move a bit faster than it actually should.

This change does not add linear interpolation of relative mouse data, but only fixes the duplication of the last mouse event. If we turn linear interpolation on for mouse pointers too we need code similar to the one that already exists for x and y axis. Additionally we must subtract the result from the upcoming event... 
.

Approved by mir-ci-bot, Alan Griffiths, Chris Halse Rogers, Cemil Azizoglu.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: