mirror of
https://github.com/GTNewHorizons/lwjgl3ify.git
synced 2026-11-26 15:02:57 +00:00
Add a config gui
This commit is contained in:
1 parent
592d64cb55
commit
d2f5348914
5 files changed
+110
-10
No files matched your search
@@ -88,6 +88,8 @@ public class Mouse {
|
||||
}
|
||||
|
||||
static double fractionalWheelPosition = 0.0;
|
||||
// Used for our config screen for ease of access
|
||||
public static double totalScrollAmount = 0.0;
|
||||
|
||||
public static void addWheelEvent(double dwheel) {
|
||||
if (Config.INPUT_INVERT_WHEEL) {
|
||||
@@ -97,6 +99,7 @@ public class Mouse {
|
||||
|
||||
final int lastWheel = (int) fractionalWheelPosition;
|
||||
fractionalWheelPosition += dwheel;
|
||||
totalScrollAmount += dwheel;
|
||||
final int newWheel = (int) fractionalWheelPosition;
|
||||
if (newWheel != lastWheel) {
|
||||
lastxEvents[queue.getNextPos()] = xEvents[queue.getNextPos()];
|
||||
|
||||
Reference in new issue
Block a user