Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Commit

Permalink
client: expose idle/cross methods. (#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganom authored Jan 13, 2020
1 parent 63b9854 commit 4f7eeb3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions runelite-api/src/main/java/net/runelite/api/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -1928,4 +1928,10 @@ public interface Client extends GameShell
* when a inventory item is clicked and dragged.
*/
void setTempMenuEntry(MenuEntry entry);

void setShowMouseCross(boolean show);

void setMouseIdleTicks(int cycles);

void setKeyboardIdleTicks(int cycles);
}
14 changes: 13 additions & 1 deletion runescape-api/src/main/java/net/runelite/rs/api/RSClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,18 @@ public interface RSClient extends RSGameShell, Client
@Override
int getMouseIdleTicks();

@Import("MouseHandler_idleCycles")
@Override
void setMouseIdleTicks(int cycles);

@Import("MouseHandler_lastPressedTimeMillis")
@Override
long getMouseLastPressedMillis();

@Import("KeyHandler_idleCycles")
@Override
void setKeyboardIdleTicks(int cycles);

@Import("KeyHandler_idleCycles")
@Override
int getKeyboardIdleTicks();
Expand Down Expand Up @@ -660,7 +668,7 @@ public interface RSClient extends RSGameShell, Client
* It should be between 128 and (pitchUnlimiter?512:383) JAUs(1).
* The difference between this and cameraPitch is that cameraPitch has a lower limit, imposed by the surrounding
* terrain.
*
* <p>
* (1) JAU - Jagex Angle Unit; 1/1024 of a revolution
*/
@Import("camAngleX")
Expand Down Expand Up @@ -1134,4 +1142,8 @@ public interface RSClient extends RSGameShell, Client

@Import("updateItemPile")
void updateItemPile(int localX, int localY);

@Import("showMouseCross")
@Override
void setShowMouseCross(boolean show);
}

0 comments on commit 4f7eeb3

Please sign in to comment.