Interface EngineMouseHandler

All Superinterfaces:
EngineInterface<net.minecraft.client.MouseHandler>
All Known Implementing Classes:
MouseHandlerMixin

public interface EngineMouseHandler extends EngineInterface<net.minecraft.client.MouseHandler>
Extends mouse input handling with button and scroll event hooks.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    engine$onButton(long p_window, net.minecraft.client.input.MouseButtonInfo buttonInfo, int action, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
    Called on mouse button events to allow interception or augmentation.
    default void
    engine$onMove(long window, double x, double y, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
    Called on mouse move events to allow interception or augmentation.
    default void
    engine$onScroll(long window, double horizontal, double vertical, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
    Called on mouse scroll events to allow interception or augmentation.
    default void
    Resets internal mouse state and positions the cursor off-screen.

    Methods inherited from interface EngineInterface

    engine$self
  • Method Details

    • engine$onButton

      default void engine$onButton(long p_window, net.minecraft.client.input.MouseButtonInfo buttonInfo, int action, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
      Called on mouse button events to allow interception or augmentation.
    • engine$onScroll

      default void engine$onScroll(long window, double horizontal, double vertical, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
      Called on mouse scroll events to allow interception or augmentation.
    • engine$onMove

      default void engine$onMove(long window, double x, double y, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
      Called on mouse move events to allow interception or augmentation.
    • engine$resetMouse

      default void engine$resetMouse()
      Resets internal mouse state and positions the cursor off-screen.