Class ScreenAdjustedNature
- java.lang.Object
-
- net.eternalclient.api.internal.mouse.naturalmouse.support.MouseMotionNature
-
- net.eternalclient.api.internal.mouse.naturalmouse.support.DefaultMouseMotionNature
-
- net.eternalclient.api.internal.mouse.naturalmouse.support.ScreenAdjustedNature
-
public class ScreenAdjustedNature extends DefaultMouseMotionNature
This nature translates mouse coordinates to specified offset and screen dimension. Internally it wraps the SystemCalls and MouseInfoAccessor in proxies which handle the translations.
-
-
Field Summary
-
Fields inherited from class net.eternalclient.api.internal.mouse.naturalmouse.support.DefaultMouseMotionNature
EFFECT_FADE_STEPS, MIN_STEPS, REACTION_TIME_BASE_MS, REACTION_TIME_VARIATION_MS, TIME_TO_STEPS_DIVIDER
-
-
Constructor Summary
Constructors Constructor Description ScreenAdjustedNature(int x, int y, int x2, int y2)ScreenAdjustedNature(java.awt.Dimension screenSize, java.awt.Point mouseOffset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetMouseInfo(MouseInfoAccessor mouseInfo)Set the accessor object, which MouseMotion uses to detect the position of mouse on screen.voidsetSystemCalls(SystemCalls systemCalls)Set a system call interface, which MouseMotion uses internally.-
Methods inherited from class net.eternalclient.api.internal.mouse.naturalmouse.support.MouseMotionNature
getDeviationProvider, getEffectFadeSteps, getMinSteps, getMouseInfo, getNoiseProvider, getOvershootManager, getReactionTimeBaseMs, getReactionTimeVariationMs, getSpeedManager, getSystemCalls, getTimeToStepsDivider, setDeviationProvider, setEffectFadeSteps, setMinSteps, setNoiseProvider, setOvershootManager, setReactionTimeBaseMs, setReactionTimeVariationMs, setSpeedManager, setTimeToStepsDivider
-
-
-
-
Method Detail
-
setMouseInfo
public void setMouseInfo(MouseInfoAccessor mouseInfo)
Description copied from class:MouseMotionNatureSet the accessor object, which MouseMotion uses to detect the position of mouse on screen.- Overrides:
setMouseInfoin classMouseMotionNature- Parameters:
mouseInfo- the accessor object
-
setSystemCalls
public void setSystemCalls(SystemCalls systemCalls)
Description copied from class:MouseMotionNatureSet a system call interface, which MouseMotion uses internally.- Overrides:
setSystemCallsin classMouseMotionNature- Parameters:
systemCalls- the interface
-
-