Klasse MouseHandlerMixin
java.lang.Object
de.luckymcdev.foundryengine.mixin.input.MouseHandlerMixin
- Alle implementierten Schnittstellen:
EngineInterface<net.minecraft.client.MouseHandler>, EngineMouseHandler
See
ImGuiManager.shouldInterceptMouse()
Cancels Minecraft Mouse inputs if ImGui captures the Mouse.-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidengine$onButton(long handle, net.minecraft.client.input.MouseButtonInfo buttonInfo, int action, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Cancels mouse button events when ImGui captures the mouse.voidengine$onMove(long handle, double xpos, double ypos, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Cancels cursor move events when ImGui captures the mouse, resetting position off-screen so MC screen widgets don't receive hover/click events at the real cursor position.voidengine$onScroll(long handle, double horizontal, double vertical, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Cancels scroll events when ImGui captures the mouse, or forwards to the in-world editor.voidResets internal mouse state and positions the cursor off-screen.Von Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden EngineInterface
engine$self
-
Konstruktordetails
-
MouseHandlerMixin
public MouseHandlerMixin()
-
-
Methodendetails
-
engine$onButton
public void engine$onButton(long handle, net.minecraft.client.input.MouseButtonInfo buttonInfo, int action, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Cancels mouse button events when ImGui captures the mouse.- Angegeben von:
engine$onButtonin SchnittstelleEngineMouseHandler
-
engine$onScroll
public void engine$onScroll(long handle, double horizontal, double vertical, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Cancels scroll events when ImGui captures the mouse, or forwards to the in-world editor.- Angegeben von:
engine$onScrollin SchnittstelleEngineMouseHandler
-
engine$onMove
public void engine$onMove(long handle, double xpos, double ypos, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Cancels cursor move events when ImGui captures the mouse, resetting position off-screen so MC screen widgets don't receive hover/click events at the real cursor position.- Angegeben von:
engine$onMovein SchnittstelleEngineMouseHandler
-
engine$resetMouse
public void engine$resetMouse()Beschreibung aus Schnittstelle kopiert:EngineMouseHandlerResets internal mouse state and positions the cursor off-screen.- Angegeben von:
engine$resetMousein SchnittstelleEngineMouseHandler
-