Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.hid
Interface HIDService

All Known Implementing Classes:
HIDServiceImpl

public interface HIDService

Human Interface Device service. This service is used to regenerates key and mouse events on the local computer. It is typically used in case of remote control features.

Author:
Sebastien Vincent

Method Summary
 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).
 

Method Detail

keyPress

void keyPress(int keycode)
Press a specific key using its keycode.

Parameters:
keycode - the Java keycode, all available keycode can be found in java.awt.event.KeyEvent class (VK_A, VK_SPACE, ...)
See Also:
KeyEvent, Robot.keyRelease(int keycode)

keyRelease

void keyRelease(int keycode)
Release a specific key using its keycode.

Parameters:
keycode - the Java keycode, all available keycode can be found in java.awt.event.KeyEvent class (VK_A, VK_SPACE, ...)
See Also:
KeyEvent, Robot.keyRelease(int keycode)

keyPress

void keyPress(char key)
Press a specific key using its char representation.

Parameters:
key - char representation of the key

keyRelease

void keyRelease(char key)
Release a specific key using its char representation.

Parameters:
key - char representation of the key

mousePress

void mousePress(int btns)
Press a mouse button(s).

Parameters:
btns - button masks
See Also:
Robot.mousePress(int btns)

mouseRelease

void mouseRelease(int btns)
Release a mouse button(s).

Parameters:
btns - button masks
See Also:
Robot.mouseRelease(int btns)

mouseMove

void mouseMove(int x,
               int y)
Move the mouse on the screen.

Parameters:
x - x position on the screen
y - y position on the screen
See Also:
Robot.mouseMove(int x, int y)

mouseWheel

void mouseWheel(int rotation)
Release a mouse button(s).

Parameters:
rotation - wheel rotation (could be negative or positive depending on the direction).
See Also:
Robot.mouseWheel(int wheelAmt)

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.