Update #37 - Touch support without userscript, many other feats

This commit is contained in:
lax1dude
2024-09-21 20:17:42 -07:00
parent 173727c8c4
commit ec1ab8ece3
683 changed files with 62074 additions and 8996 deletions

View File

@ -1,6 +1,7 @@
package net.lax1dude.eaglercraft.v1_8;
import net.lax1dude.eaglercraft.v1_8.internal.EnumCursorType;
import net.lax1dude.eaglercraft.v1_8.internal.EnumFireMouseEvent;
import net.lax1dude.eaglercraft.v1_8.internal.PlatformInput;
/**
@ -92,6 +93,22 @@ public class Mouse {
return PlatformInput.isMouseGrabbed();
}
public static boolean isMouseGrabSupported() {
return PlatformInput.mouseGrabSupported();
}
public static void fireMoveEvent(EnumFireMouseEvent eventType, int posX, int posY) {
PlatformInput.mouseFireMoveEvent(eventType, posX, posY);
}
public static void fireButtonEvent(EnumFireMouseEvent eventType, int posX, int posY, int button) {
PlatformInput.mouseFireButtonEvent(eventType, posX, posY, button);
}
public static void fireWheelEvent(EnumFireMouseEvent eventType, int posX, int posY, float wheel) {
PlatformInput.mouseFireWheelEvent(eventType, posX, posY, wheel);
}
private static int customCursorCounter = 0;
private static EnumCursorType currentCursorType = EnumCursorType.DEFAULT;