Class PressKey
- 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.PressKey
-
- All Implemented Interfaces:
java.lang.Runnable
public class PressKey extends AbstractKeyEvent
Creates aKeyEvent.KEY_PRESSED
event Marks the key as pressed internally and marks the last key location that was used for the press on that key where available
-
-
Constructor Summary
Constructors Constructor Description PressKey(char character)
PressKey(char character, KeyLocation location)
PressKey(Key key)
PressKey(Key key, KeyLocation location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
void
run()
java.lang.String
toString()
-
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
-
PressKey
public PressKey(char character)
-
PressKey
public PressKey(char character, KeyLocation location)
-
PressKey
public PressKey(Key key)
-
PressKey
public PressKey(Key key, KeyLocation location)
-
-
Method Detail
-
run
public void run()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classAbstractKeyEvent
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractKeyEvent
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractKeyEvent
-
-