Package org.rsbot.script.methods

Examples of org.rsbot.script.methods.Mouse


    }
  }

  private void redispatch(final MouseEvent e) {
    if (bot != null && bot.getLoader().getComponentCount() > 0) {
      final Mouse mouse = bot.getMethodContext().mouse;
      if (mouse == null) {
        return; // client cannot currently accept events
      }
      final boolean present = mouse.isPresent();
      final Component c = bot.getLoader().getComponent(0);
      // account for horizontal offset
      e.translatePoint(-offset.x, -offset.y);
      // fire human mouse event for scripts
      dispatchHuman(c, e);
View Full Code Here

TOP

Related Classes of org.rsbot.script.methods.Mouse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.