Class MouseSettings
- java.lang.Object
-
- org.dreambot.api.methods.input.mouse.MouseSettings
-
public class MouseSettings extends java.lang.ObjectDo not worry about this class too much. This class specifies the settings for the mouse controller.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMouseSettings.Hand
-
Constructor Summary
Constructors Constructor Description MouseSettings(Instance instance)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAccelerationDeviation()intgetAccelerationRate()java.lang.StringgetAction()Gets the action of the targetintgetAngleDeviationRate()java.awt.RectanglegetBounds()Gets the Rectangle of the boundsintgetCalcsPerSecond()doublegetDecayDistanceExponent()doublegetDecelDecayRate()intgetDecelRadiusDeviation()intgetMaxDecelDistance()intgetMaxdTheta()intgetMaxMagnitude()intgetMeanDecelRadius()intgetMinDecelMagnitude()intgetMinMagnitude()static MouseTiminggetMouseTiming()Returns the client's mouse timing generator, used to determine the time in milliseconds between pressing down and releasing the mouse buttonsjava.lang.StringgetObject()Gets the object of the targetMouseSettings.HandgetPreferredHand()Gets preferred handjava.awt.RectanglegetRectDest()static intgetSpeed()Returns the client's current speed, between 1 and 100.booleanisClick()Gets whether should clickbooleanisDrag()Gets whether it should dragbooleanisLeftClick()Returns whether it's left clickbooleanisMultiThread()Whether or not it is multithreadedbooleanisOvershoot()Gets whether it should overshootbooleanisRightClick()Gets whether it's right clickbooleanisUseMiddleMouseInInteracts()booleanisWalking()doubler()voidreset()Resets mouse settingsstatic voidresetMouseTimings()Resets mouse timings to their client defaultMouseSettingsresetSpeed()MouseSettingssetAction(java.lang.String action)Sets the actionMouseSettingssetBounds(java.awt.Rectangle bounds)Sets bounds the mouse cannot leave during eventsMouseSettingssetClick(boolean click)Sets clickMouseSettingssetDrag(boolean drag)Sets dragMouseSettingssetLeftClick(boolean leftClick)Sets whether it's left clickstatic voidsetMouseTiming(MouseTiming mouseTiming)voidsetMultiThread(boolean multiThread)Sets multithreaded true or falseMouseSettingssetObject(java.lang.String object)Sets the objectMouseSettingssetOvershoot(boolean overshoot)Sets overshootvoidsetPreferredHand(MouseSettings.Hand preferredHand)Sets preferred hand (Left/Right)MouseSettingssetRectDest(java.awt.Rectangle rectDest)MouseSettingssetRightClick(boolean rightClick)Sets right clickstatic voidsetSpeed(int accel)MouseSettingssetTarget(java.lang.String action, java.lang.String object)Sets the targetvoidsetUseMiddleMouseInInteracts(boolean useMiddleMouseInInteracts)MouseSettingssetWalking(boolean walk)
-
-
-
Constructor Detail
-
MouseSettings
public MouseSettings(Instance instance)
-
-
Method Detail
-
resetMouseTimings
public static void resetMouseTimings()
Resets mouse timings to their client default
-
getMouseTiming
public static MouseTiming getMouseTiming()
Returns the client's mouse timing generator, used to determine the time in milliseconds between pressing down and releasing the mouse buttons- Returns:
- The current mouse timing generator
-
setMouseTiming
public static void setMouseTiming(MouseTiming mouseTiming)
- Parameters:
mouseTiming- Sets the client's mouse timing generator
-
getSpeed
public static int getSpeed()
Returns the client's current speed, between 1 and 100.- Returns:
- Mouse speed, 1 (slowest) to 100 (hopping)
-
setSpeed
public static void setSpeed(int accel)
-
resetSpeed
public MouseSettings resetSpeed()
-
getRectDest
public java.awt.Rectangle getRectDest()
-
setRectDest
public MouseSettings setRectDest(java.awt.Rectangle rectDest)
-
r
public double r()
-
getMaxdTheta
public int getMaxdTheta()
-
getDecelRadiusDeviation
public int getDecelRadiusDeviation()
-
getDecayDistanceExponent
public double getDecayDistanceExponent()
-
getMinMagnitude
public int getMinMagnitude()
-
getAccelerationDeviation
public int getAccelerationDeviation()
-
getMinDecelMagnitude
public int getMinDecelMagnitude()
-
getMaxDecelDistance
public int getMaxDecelDistance()
-
getAccelerationRate
public int getAccelerationRate()
-
getMaxMagnitude
public int getMaxMagnitude()
-
getDecelDecayRate
public double getDecelDecayRate()
-
getAngleDeviationRate
public int getAngleDeviationRate()
-
getMeanDecelRadius
public int getMeanDecelRadius()
-
getCalcsPerSecond
public int getCalcsPerSecond()
-
isWalking
public boolean isWalking()
-
setWalking
public MouseSettings setWalking(boolean walk)
-
setTarget
public MouseSettings setTarget(java.lang.String action, java.lang.String object)
Sets the target- Parameters:
action- Action to set as targetobject- Object to set as target
-
getAction
public java.lang.String getAction()
Gets the action of the target- Returns:
- Action
-
setAction
public MouseSettings setAction(java.lang.String action)
Sets the action- Parameters:
action- Action to set as target
-
getObject
public java.lang.String getObject()
Gets the object of the target- Returns:
- object name
-
setObject
public MouseSettings setObject(java.lang.String object)
Sets the object- Parameters:
object- Object to set
-
isMultiThread
public boolean isMultiThread()
Whether or not it is multithreaded- Returns:
- True or false
-
setMultiThread
public void setMultiThread(boolean multiThread)
Sets multithreaded true or false- Parameters:
multiThread- True or False
-
isLeftClick
public boolean isLeftClick()
Returns whether it's left click- Returns:
- True or False
-
setLeftClick
public MouseSettings setLeftClick(boolean leftClick)
Sets whether it's left click- Parameters:
leftClick- True or False
-
isRightClick
public boolean isRightClick()
Gets whether it's right click- Returns:
- True or False
-
setRightClick
public MouseSettings setRightClick(boolean rightClick)
Sets right click- Parameters:
rightClick- True or False
-
isClick
public boolean isClick()
Gets whether should click- Returns:
- True or False
-
setClick
public MouseSettings setClick(boolean click)
Sets click- Parameters:
click- True or False
-
isOvershoot
public boolean isOvershoot()
Gets whether it should overshoot- Returns:
- True or False
-
setOvershoot
public MouseSettings setOvershoot(boolean overshoot)
Sets overshoot- Parameters:
overshoot- True or False
-
isDrag
public boolean isDrag()
Gets whether it should drag- Returns:
- True or False
-
setDrag
public MouseSettings setDrag(boolean drag)
Sets drag- Parameters:
drag- True or False
-
getBounds
public java.awt.Rectangle getBounds()
Gets the Rectangle of the bounds- Returns:
- Rectangle of bounds
-
setBounds
public MouseSettings setBounds(java.awt.Rectangle bounds)
Sets bounds the mouse cannot leave during events- Parameters:
bounds-
-
reset
public void reset()
Resets mouse settings
-
getPreferredHand
public MouseSettings.Hand getPreferredHand()
Gets preferred hand- Returns:
- Hand (Left/Right)
-
setPreferredHand
public void setPreferredHand(MouseSettings.Hand preferredHand)
Sets preferred hand (Left/Right)- Parameters:
preferredHand- (Hand.LEFT, Hand.RIGHT)
-
isUseMiddleMouseInInteracts
public boolean isUseMiddleMouseInInteracts()
-
setUseMiddleMouseInInteracts
public void setUseMiddleMouseInInteracts(boolean useMiddleMouseInInteracts)
-
-