de.mud.terminal
Interface VDUInput
- vt320
public interface VDUInput
An interface for a terminal that accepts input from keyboard and mouse.
$Id: VDUInput.java 499 2005-09-29 08:24:54Z leo $- Matthias L. Jugel, Marcus Mei???ner
void | keyPressed(int keyCode, char keyChar, int modifiers) - main keytyping event handler...
|
void | keyTyped(int keyCode, char keyChar, int modifiers) - Handle key Typed events for the terminal, this will get
all normal key types, but no shift/alt/control/numlock.
|
void | mousePressed(int x, int y, int modifiers) - Terminal is mouse-aware and requires (x,y) coordinates of
on the terminal (character coordinates) and the button clicked.
|
void | mouseReleased(int x, int y, int modifiers) - Terminal is mouse-aware and requires the coordinates and button
of the release.
|
void | setKeyCodes(Properties codes) - Override the standard key codes used by the terminal emulation.
|
void | write(b[] ) - Direct access to writing data ...
|
KEY_ACTION
public static final int KEY_ACTION
KEY_ALT
public static final int KEY_ALT
KEY_CONTROL
public static final int KEY_CONTROL
KEY_SHIFT
public static final int KEY_SHIFT
keyPressed
public void keyPressed(int keyCode,
char keyChar,
int modifiers)
main keytyping event handler...
keyCode
- the key codekeyChar
- the character represented by the keymodifiers
- shift/alt/control modifiers
keyTyped
public void keyTyped(int keyCode,
char keyChar,
int modifiers)
Handle key Typed events for the terminal, this will get
all normal key types, but no shift/alt/control/numlock.
keyCode
- the key codekeyChar
- the character represented by the keymodifiers
- shift/alt/control modifiers
mousePressed
public void mousePressed(int x,
int y,
int modifiers)
Terminal is mouse-aware and requires (x,y) coordinates of
on the terminal (character coordinates) and the button clicked.
mouseReleased
public void mouseReleased(int x,
int y,
int modifiers)
Terminal is mouse-aware and requires the coordinates and button
of the release.
setKeyCodes
public void setKeyCodes(Properties codes)
Override the standard key codes used by the terminal emulation.
codes
- a properties object containing key code definitions
write
public void write(b[] )
Direct access to writing data ...