public class HIDServiceImpl extends java.lang.Object implements HIDService
Modifier | Constructor and Description |
---|---|
protected |
HIDServiceImpl()
Constructor.
|
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).
|
public void keyPress(int keycode)
keyPress
in interface HIDService
keycode
- the Java keycode, all available keycodes can be found
in java.awt.event.KeyEvent class (VK_A, VK_SPACE, ...)KeyEvent
public void keyRelease(int keycode)
keyRelease
in interface HIDService
keycode
- the Java keycode, all available keycode can be found
in java.awt.event.KeyEvent class (VK_A, VK_SPACE, ...)KeyEvent
public void keyPress(char key)
keyPress
in interface HIDService
key
- char representation of the keypublic void keyRelease(char key)
keyRelease
in interface HIDService
key
- char representation of the keypublic void mousePress(int btns)
mousePress
in interface HIDService
btns
- button masksRobot.mousePress(int btns)
public void mouseRelease(int btns)
mouseRelease
in interface HIDService
btns
- button masksRobot.mouseRelease(int btns)
public void mouseMove(int x, int y)
mouseMove
in interface HIDService
x
- x position on the screeny
- y position on the screenRobot.mouseMove(int x, int y)
public void mouseWheel(int rotation)
mouseWheel
in interface HIDService
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.