|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectcom.epiphan.vga2usb.Enum
com.epiphan.vga2usb.Enum.Int
com.epiphan.vga2usb.KVM.Key
Standard PS/2 scancode descriptor. It represents a single byte
PRESS sequence, and a two byte RELEASE sequence that starts
with 0xF0, for example {0x5A} and
{0xF0,0x5A}.
| Nested Class Summary | |
static class |
KVM.Key.E0
Extended (E0-based) PS/2 scancode descriptor. |
| Constructor Summary | |
KVM.Key(int vk,
String text,
int code)
Creates a standard scancode descriptor. |
|
| Method Summary | |
int |
compareTo(int key)
Compares id of this object with the specified key for order. |
int |
compareTo(Object obj)
Compares this object with the specified object for order. |
String |
getDescription()
Returns the description of this object. |
int |
getValue()
Gets the integer value associated with this object. |
int |
hashCode()
Returns the hashcode for this object. |
protected static int |
search(java.util.List list,
int key)
Searches the list for the specified enum object using the binary search algorithm. |
String |
toString()
Returns a string representation of this object. |
| Methods inherited from class Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public KVM.Key(int vk,
String text,
int code)
0xF0. For example, if the code
argument equals 0x5A, then the PRESS sequence will
be {0x5A} and the RELEASE sequence will be
{0xF0,0x5A}.
vk - Java virtual key code.text - key description.code - the last byte of the scancode sequence.KeyEvent| Method Detail |
public int compareTo(int key)
key - the key to be compared.
ClassCastException - if the specified object's type prevents it
from being compared to this Object.Comparablepublic int compareTo(Object obj)
compareTo in interface Comparableobj - the Object to be compared.
ClassCastException - if the specified object's type prevents it
from being compared to this Object.Comparablepublic final int getValue()
public final int hashCode()
protected static int search(java.util.List list,
int key)
list - the list to searchkey - the key to search for
public final String getDescription()
public final String toString()
null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||