public class ClientKeyEventHandler
extends java.lang.Object
implements java.awt.event.KeyListener
Constructor and Description |
---|
ClientKeyEventHandler(org.osbot.rs07.accessor.XClient client) |
Modifier and Type | Method and Description |
---|---|
void |
generateBotKeyEvent(int id,
long time,
int modifiers,
int keyCode,
char keyChar) |
void |
generateBotKeyEvent(int id,
long time,
int modifiers,
int keyCode,
char keyChar,
int keyLocation,
boolean botInput) |
java.util.concurrent.Semaphore |
getSemaphore() |
boolean |
isKeyDown(int keyCode) |
boolean |
isShiftDown() |
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
public ClientKeyEventHandler(org.osbot.rs07.accessor.XClient client)
public java.util.concurrent.Semaphore getSemaphore()
public boolean isShiftDown()
public boolean isKeyDown(int keyCode)
public void generateBotKeyEvent(int id, long time, int modifiers, int keyCode, char keyChar)
public void generateBotKeyEvent(int id, long time, int modifiers, int keyCode, char keyChar, int keyLocation, boolean botInput)
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener