mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-27 18:38:14 -05:00
Update #37 - Touch support without userscript, many other feats
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user