diff options
| author | 2024-09-27 01:08:02 +0000 | |
|---|---|---|
| committer | 2024-09-27 01:08:02 +0000 | |
| commit | d0285f45ae575a039a787b7a7486b7686053a34c (patch) | |
| tree | a2675b357fcfbd932504ecfe5ae5634a0793a36f /libs/input/Resampler.cpp | |
| parent | bdc0fb711b06d3ad01f921b5cd54637bbb9956e9 (diff) | |
| parent | e37f8346c62551dac1919fad4cd60a707d27e6a2 (diff) | |
Merge "Add multiple device resampling support to InputConsumerNoResampling with tests" into main
Diffstat (limited to 'libs/input/Resampler.cpp')
| -rw-r--r-- | libs/input/Resampler.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libs/input/Resampler.cpp b/libs/input/Resampler.cpp index 51fadf8ec1..328fa684f6 100644 --- a/libs/input/Resampler.cpp +++ b/libs/input/Resampler.cpp @@ -247,11 +247,6 @@ nanoseconds LegacyResampler::getResampleLatency() const { void LegacyResampler::resampleMotionEvent(nanoseconds frameTime, MotionEvent& motionEvent, const InputMessage* futureSample) { - if (mPreviousDeviceId && *mPreviousDeviceId != motionEvent.getDeviceId()) { - mLatestSamples.clear(); - } - mPreviousDeviceId = motionEvent.getDeviceId(); - const nanoseconds resampleTime = frameTime - RESAMPLE_LATENCY; updateLatestSamples(motionEvent); |