client: expose idle/cross methods. (#2230)

This commit is contained in:
Ganom
2020-01-13 18:11:31 -05:00
committed by GitHub
parent 63b98542a8
commit 4f7eeb396a
2 changed files with 19 additions and 1 deletions

View File

@@ -1928,4 +1928,10 @@ public interface Client extends GameShell
* when a inventory item is clicked and dragged. * when a inventory item is clicked and dragged.
*/ */
void setTempMenuEntry(MenuEntry entry); void setTempMenuEntry(MenuEntry entry);
void setShowMouseCross(boolean show);
void setMouseIdleTicks(int cycles);
void setKeyboardIdleTicks(int cycles);
} }

View File

@@ -585,10 +585,18 @@ public interface RSClient extends RSGameShell, Client
@Override @Override
int getMouseIdleTicks(); int getMouseIdleTicks();
@Import("MouseHandler_idleCycles")
@Override
void setMouseIdleTicks(int cycles);
@Import("MouseHandler_lastPressedTimeMillis") @Import("MouseHandler_lastPressedTimeMillis")
@Override @Override
long getMouseLastPressedMillis(); long getMouseLastPressedMillis();
@Import("KeyHandler_idleCycles")
@Override
void setKeyboardIdleTicks(int cycles);
@Import("KeyHandler_idleCycles") @Import("KeyHandler_idleCycles")
@Override @Override
int getKeyboardIdleTicks(); int getKeyboardIdleTicks();
@@ -660,7 +668,7 @@ public interface RSClient extends RSGameShell, Client
* It should be between 128 and (pitchUnlimiter?512:383) JAUs(1). * 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 * The difference between this and cameraPitch is that cameraPitch has a lower limit, imposed by the surrounding
* terrain. * terrain.
* * <p>
* (1) JAU - Jagex Angle Unit; 1/1024 of a revolution * (1) JAU - Jagex Angle Unit; 1/1024 of a revolution
*/ */
@Import("camAngleX") @Import("camAngleX")
@@ -1134,4 +1142,8 @@ public interface RSClient extends RSGameShell, Client
@Import("updateItemPile") @Import("updateItemPile")
void updateItemPile(int localX, int localY); void updateItemPile(int localX, int localY);
@Import("showMouseCross")
@Override
void setShowMouseCross(boolean show);
} }