mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-28 10:58:15 -05:00
Update #39 - Fix various issues with the client
This commit is contained in:
@ -479,7 +479,11 @@ public class PlatformInput {
|
||||
}
|
||||
|
||||
public static int mouseGetEventDWheel() {
|
||||
return (int)currentMouseEvent.wheel;
|
||||
return fixWheel(currentMouseEvent.wheel);
|
||||
}
|
||||
|
||||
private static int fixWheel(float val) {
|
||||
return (val > 0.0f ? 1 : (val < 0.0f ? -1 : 0));
|
||||
}
|
||||
|
||||
public static int mouseGetX() {
|
||||
|
Reference in New Issue
Block a user