stackotter / delta-client

An open source Minecraft Java Edition client built for speed.
https://deltaclient.app
GNU General Public License v3.0
323 stars 33 forks source link

Smooth mouse input #55

Closed stackotter closed 2 years ago

stackotter commented 2 years ago

Currently mouse input is used raw and this results in noticeably 'unsmooth' mouse movement at higher sensitivities. The smoothing would probably work similarly to smoothing in EntityPosition. Just add similar functionality to EntityRotation and set the delay to something pretty low, like 0.05 or 0.03 (you'll have to find a balance between smooth enough but also snappy because no-one wants the cursor to be lagging behind).