|
Josh Native console access wrapper for Java |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.yifanlu.Josh.ConsoleEvent
public abstract class ConsoleEvent
Describes an input event in the console input buffer.
These records can be read from the input buffer by using the ReadConsoleInput or PeekConsoleInput function,
or written to the input buffer by using the WriteConsoleInput function.
Note that you can not create an object directly from this class. You must define the event. For example
(assuming all variables are declared):
ConsoleEvent keyEvent = new ConsoleEventKeyboard((boolean)bKeyDown, (int)wRepeatCount, (int)wVirtualKeyCode,
(int)wVirtualScanCode, (char)uChar, (int)dwControlKeyState);
JoshInBuffer| Field Summary | |
|---|---|
static int |
CAPSLOCK_ON
Constant value for key held. |
static int |
ENHANCED_KEY
Constant value for key held. |
protected int |
eventType
|
static int |
FOCUS_EVENT
Different type of event. |
static int |
KEY_EVENT
Different type of event. |
static int |
LEFT_ALT_PRESSED
Constant value for key held. |
static int |
LEFT_CTRL_PRESSED
Constant value for key held. |
static int |
MENU_EVENT
Different type of event. |
static int |
MOUSE_EVENT
Different type of event. |
static int |
NUMLOCK_ON
Constant value for key held. |
static int |
RIGHT_ALT_PRESSED
Constant value for key held. |
static int |
RIGHT_CTRL_PRESSED
Constant value for key held. |
static int |
SCROLLLOCK_ON
Constant value for key held. |
static int |
SHIFT_PRESSED
Constant value for key held. |
static int |
WINDOW_BUFFER_SIZE_EVENT
Different type of event. |
| Constructor Summary | |
|---|---|
ConsoleEvent()
|
|
| Method Summary | |
|---|---|
int |
getEventType()
Gets the event type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int eventType
public static final int FOCUS_EVENT
public static final int KEY_EVENT
public static final int MENU_EVENT
public static final int MOUSE_EVENT
public static final int WINDOW_BUFFER_SIZE_EVENT
public static final int CAPSLOCK_ON
public static final int ENHANCED_KEY
public static final int LEFT_ALT_PRESSED
public static final int LEFT_CTRL_PRESSED
public static final int NUMLOCK_ON
public static final int RIGHT_ALT_PRESSED
public static final int RIGHT_CTRL_PRESSED
public static final int SCROLLLOCK_ON
public static final int SHIFT_PRESSED
| Constructor Detail |
|---|
public ConsoleEvent()
| Method Detail |
|---|
public int getEventType()
|
Copyright © 2010 Yifan Lu | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||