public interface HIDService
Modifier and Type | Method and Description |
---|---|
void |
keyPress(char key)
Press a specific key using its char representation.
|
void |
keyPress(int keycode)
Press a specific key using its keycode.
|
void |
keyRelease(char key)
Release a specific key using its char representation.
|
void |
keyRelease(int keycode)
Release a specific key using its keycode.
|
void |
mouseMove(int x,
int y)
Move the mouse on the screen.
|
void |
mousePress(int btns)
Press a mouse button(s).
|
void |
mouseRelease(int btns)
Release a mouse button(s).
|
void |
mouseWheel(int rotation)
Release a mouse button(s).
|
void keyPress(int keycode)
keycode
- the Java keycode, all available keycode can be found
in java.awt.event.KeyEvent class (VK_A, VK_SPACE, ...)KeyEvent
,
Robot.keyRelease(int keycode)
void keyRelease(int keycode)
keycode
- the Java keycode, all available keycode can be found
in java.awt.event.KeyEvent class (VK_A, VK_SPACE, ...)KeyEvent
,
Robot.keyRelease(int keycode)
void keyPress(char key)
key
- char representation of the keyvoid keyRelease(char key)
key
- char representation of the keyvoid mousePress(int btns)
btns
- button masksRobot.mousePress(int btns)
void mouseRelease(int btns)
btns
- button masksRobot.mouseRelease(int btns)
void mouseMove(int x, int y)
x
- x position on the screeny
- y position on the screenRobot.mouseMove(int x, int y)
void mouseWheel(int rotation)
rotation
- wheel rotation (could be negative or positive depending
on the direction).Robot.mouseWheel(int wheelAmt)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.