Class Mouse

java.lang.Object
dev.twilite.game.mouse.Mouse

public class Mouse extends Object
Generates mouse movement samples before synthetic menu clicks.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    beforeClick(dev.twilite.game.internal.memory.RSClient client)
    Flushes pending movement before sending a click packet.
    static void
    Disables generated mouse movement samples.
    static void
    moveTo(int x, int y, boolean forceFlush)
    Moves the synthetic mouse to the target point.
    static void
    Restores the default balanced configured generator and clears any custom override.
    static void
    Sets the configured generator used for generated mouse movement.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Mouse

      public Mouse()
  • Method Details

    • setGenerator

      public static void setGenerator(MouseMovementGenerator generator)
      Sets the configured generator used for generated mouse movement.
    • disableGenerator

      public static void disableGenerator()
      Disables generated mouse movement samples.
    • resetGenerator

      public static void resetGenerator()
      Restores the default balanced configured generator and clears any custom override.
    • moveTo

      public static void moveTo(int x, int y, boolean forceFlush)
      Moves the synthetic mouse to the target point.
    • beforeClick

      public static void beforeClick(dev.twilite.game.internal.memory.RSClient client)
      Flushes pending movement before sending a click packet.