Class MousePackets


  • public class MousePackets
    extends java.lang.Object
    Utility class for creating and queuing mouse packets.
    • Constructor Summary

      Constructors 
      Constructor Description
      MousePackets()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RSPacketBufferNode createClickPacket​(int mouseInfo, int x, int y)
      Creates a packet for a mouse click event.
      static void queueClickPacket()
      Queues a click packet with default coordinates (0, 0).
      static void queueClickPacket​(int x, int y)
      Queues a click packet with the given coordinates.
      static void queueClickPacket​(int mouseInfo, int x, int y)
      Queues a click packet with the specified mouse information, x and y coordinates.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MousePackets

        public MousePackets()
    • Method Detail

      • queueClickPacket

        public static void queueClickPacket()
        Queues a click packet with default coordinates (0, 0).
      • queueClickPacket

        public static void queueClickPacket​(int x,
                                            int y)
        Queues a click packet with the given coordinates.
        Parameters:
        x - the X coordinate of the click
        y - the Y coordinate of the click
      • queueClickPacket

        public static void queueClickPacket​(int mouseInfo,
                                            int x,
                                            int y)
        Queues a click packet with the specified mouse information, x and y coordinates.
        Parameters:
        mouseInfo - the mouse information to include in the click packet
        x - the x-coordinate of the click
        y - the y-coordinate of the click
      • createClickPacket

        public static RSPacketBufferNode createClickPacket​(int mouseInfo,
                                                           int x,
                                                           int y)
        Creates a packet for a mouse click event.
        Parameters:
        mouseInfo - the mouse information.
        x - the x-coordinate of the click.
        y - the y-coordinate of the click.
        Returns:
        the packet buffer node.