Class ReleaseKey
- java.lang.Object
-
- org.dreambot.api.input.event.AbstractEvent
-
- org.dreambot.api.input.event.impl.keyboard.type.AbstractKeyEvent
-
- org.dreambot.api.input.event.impl.keyboard.type.ReleaseKey
-
- All Implemented Interfaces:
java.lang.Runnable
public class ReleaseKey extends AbstractKeyEvent
Creates aKeyEvent.KEY_RELEASEDevent Marks the key as released internally Resets the last key location used to press this key If no location is passed in for this event, it will default to either the key's default location or the last pressed location
-
-
Constructor Summary
Constructors Constructor Description ReleaseKey(char character)ReleaseKey(char character, KeyLocation location)ReleaseKey(Key key)ReleaseKey(Key key, KeyLocation location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()voidrun()java.lang.StringtoString()-
Methods inherited from class org.dreambot.api.input.event.impl.keyboard.type.AbstractKeyEvent
completed, failed, getCharacter, getGenerated, getKey, getLocation, isCompleted, setCharacter, setCompleted, setGenerated, setKey, setLocation
-
-
-
-
Constructor Detail
-
ReleaseKey
public ReleaseKey(char character)
-
ReleaseKey
public ReleaseKey(char character, KeyLocation location)
-
ReleaseKey
public ReleaseKey(Key key)
-
ReleaseKey
public ReleaseKey(Key key, KeyLocation location)
-
-
Method Detail
-
run
public void run()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractKeyEvent
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractKeyEvent
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractKeyEvent
-
-