Klasse MouseHandlerMixin

java.lang.Object
de.luckymcdev.foundryengine.mixin.input.MouseHandlerMixin
Alle implementierten Schnittstellen:
EngineInterface<net.minecraft.client.MouseHandler>, EngineMouseHandler

public class MouseHandlerMixin extends Object implements EngineMouseHandler
See ImGuiManager.shouldInterceptMouse() Cancels Minecraft Mouse inputs if ImGui captures the Mouse.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifikator und Typ
    Methode
    Beschreibung
    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.
    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.
    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.
    void
    Resets internal mouse state and positions the cursor off-screen.

    Von Klasse geerbte Methoden Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Von 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$onButton in Schnittstelle EngineMouseHandler
    • 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$onScroll in Schnittstelle EngineMouseHandler
    • 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$onMove in Schnittstelle EngineMouseHandler
    • engine$resetMouse

      public void engine$resetMouse()
      Beschreibung aus Schnittstelle kopiert: EngineMouseHandler
      Resets internal mouse state and positions the cursor off-screen.
      Angegeben von:
      engine$resetMouse in Schnittstelle EngineMouseHandler