Add mappings for checkClick, mouseCanvasHoverX/Y

- Add mappings to use checkClick, mouseCanvasHover X and Y from
runescape-client
- Add methods to set them to runelite-api

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-06-05 17:20:00 +02:00
parent 10ee9b9ef2
commit 01628545df
3 changed files with 35 additions and 0 deletions

View File

@@ -368,6 +368,23 @@ public interface Client extends GameEngine
*/
int getMouseCurrentButton();
/**
* Schedules checking of current region tile for next frame, so ${@link Client#getSelectedSceneTile()} ()} will
* return actual value.
*
* @param checkClick when true next frame selected region tile will be updated
*/
void setCheckClick(boolean checkClick);
/**
* Sets current mouse hover position. This value is automatically updated only when right-clicking in game.
* Setting this value together with ${@link Client#setCheckClick(boolean)} will update ${@link Client#getSelectedSceneTile()} ()}
* for next frame.
*
* @param position current mouse hover position
*/
void setMouseCanvasHoverPosition(Point position);
/**
* Gets the currently selected tile (ie. last right clicked tile).
*