Fix fractional scrolling, add scroll inversion and speed controls

This commit is contained in:
Raven Szewczyk committed 2023-01-31 10:37:50 +00:00
1 parent 56e3a91419
commit 9fe911bd6f
3 files changed
+39 -11

No files matched your search

+1 -1
View File
@@ -176,7 +176,7 @@ public class Display {
Window.scrollCallback = new GLFWScrollCallback() {
@Override
public void invoke(long window, double xoffset, double yoffset) {
Mouse.addWheelEvent((int) Math.round(yoffset));
Mouse.addWheelEvent(yoffset);
}
};