Class KeyEventGenerator
- java.lang.Object
-
- org.dreambot.api.input.event.impl.keyboard.KeyEventGenerator
-
public class KeyEventGenerator extends java.lang.Object
Generates aKeyEvent
using the given information. Generally used internally. Please see the implementations ofAbstractKeyEvent
for creating and sending events Automatically sets all internal fields of the key event to emulate system events where available. NOTE - the methods that take a char do not verify against theKey
list! Internal information will not be set correctly.
-
-
Constructor Summary
Constructors Constructor Description KeyEventGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.event.KeyEvent
generatePressed(char character)
static java.awt.event.KeyEvent
generatePressed(Key key)
static java.awt.event.KeyEvent
generatePressed(Key key, KeyLocation location)
static java.awt.event.KeyEvent
generatePressed(Key key, KeyLocation location, int modifierOverride)
static java.awt.event.KeyEvent
generateReleased(char character)
static java.awt.event.KeyEvent
generateReleased(Key key)
static java.awt.event.KeyEvent
generateReleased(Key key, KeyLocation location)
static java.awt.event.KeyEvent
generateReleased(Key key, KeyLocation location, int modifierOverride)
static java.awt.event.KeyEvent
generateTyped(char character)
static java.awt.event.KeyEvent
generateTyped(Key key)
static java.awt.event.KeyEvent
generateTyped(Key key, int modifierOverride)
-
-
-
Method Detail
-
generatePressed
public static java.awt.event.KeyEvent generatePressed(Key key)
-
generatePressed
public static java.awt.event.KeyEvent generatePressed(Key key, KeyLocation location)
-
generatePressed
public static java.awt.event.KeyEvent generatePressed(Key key, KeyLocation location, int modifierOverride)
-
generatePressed
public static java.awt.event.KeyEvent generatePressed(char character)
-
generateReleased
public static java.awt.event.KeyEvent generateReleased(Key key)
-
generateReleased
public static java.awt.event.KeyEvent generateReleased(Key key, KeyLocation location)
-
generateReleased
public static java.awt.event.KeyEvent generateReleased(Key key, KeyLocation location, int modifierOverride)
-
generateReleased
public static java.awt.event.KeyEvent generateReleased(char character)
-
generateTyped
public static java.awt.event.KeyEvent generateTyped(Key key)
-
generateTyped
public static java.awt.event.KeyEvent generateTyped(Key key, int modifierOverride)
-
generateTyped
public static java.awt.event.KeyEvent generateTyped(char character)
-
-