com.toremote.gateway.client
Interface InputInterface


public interface InputInterface

Session input interface, used to send client events (keyboard, mouse) to the session (RDP, VNC, SSH etc)


Field Summary
static int KEY_PRESS
           
static int KEY_RELEASE
           
static int PTRFLAGS_BUTTON1
           
static int PTRFLAGS_BUTTON2
           
static int PTRFLAGS_BUTTON3
           
static int PTRFLAGS_DOWN
           
static int PTRFLAGS_MOVE
           
 
Method Summary
 void sendKeyboardSynchronize(boolean scroll, boolean numlock, boolean capital)
          synchronize keyboard status
 void sendMouse(int flags, int x, int y)
          send mouse position
 void sendScancode(int flags, int scancode)
          send scancode of the key
 void sendUnicode(int unicode)
          send unicode
 

Field Detail

KEY_PRESS

static final int KEY_PRESS
See Also:
Constant Field Values

KEY_RELEASE

static final int KEY_RELEASE
See Also:
Constant Field Values

PTRFLAGS_BUTTON1

static final int PTRFLAGS_BUTTON1
See Also:
Constant Field Values

PTRFLAGS_BUTTON2

static final int PTRFLAGS_BUTTON2
See Also:
Constant Field Values

PTRFLAGS_BUTTON3

static final int PTRFLAGS_BUTTON3
See Also:
Constant Field Values

PTRFLAGS_DOWN

static final int PTRFLAGS_DOWN
See Also:
Constant Field Values

PTRFLAGS_MOVE

static final int PTRFLAGS_MOVE
See Also:
Constant Field Values
Method Detail

sendMouse

void sendMouse(int flags,
               int x,
               int y)
send mouse position

Parameters:
flags - can be PTRFLAGS_BUTTON | KEY_PRESS. PTRFLAGS_BUTTON1 (left), PTRFLAGS_BUTTON2 (right), PTRFLAGS_BUTTON3 (middle)
x -
y -

sendScancode

void sendScancode(int flags,
                  int scancode)
send scancode of the key

Parameters:
flags -
scancode -

sendUnicode

void sendUnicode(int unicode)
send unicode

Parameters:
unicode -

sendKeyboardSynchronize

void sendKeyboardSynchronize(boolean scroll,
                             boolean numlock,
                             boolean capital)
synchronize keyboard status

Parameters:
scroll - scroll key on or off
numlock - numlock key on or off
capital - capital key on or off