mirror of
https://github.com/GTNewHorizons/lwjgl3ify.git
synced 2026-11-27 15:33:25 +00:00
Fix fractional scrolling, add scroll inversion and speed controls
This commit is contained in:
1 parent
56e3a91419
commit
9fe911bd6f
3 files changed
+39
-11
No files matched your search
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user