public class TKeypressEvent extends TInputEvent
| Constructor and Description |
|---|
TKeypressEvent(boolean isKey,
int fnKey,
int ch,
boolean alt,
boolean ctrl,
boolean shift)
Public constructor.
|
TKeypressEvent(TKeypress key)
Public contructor.
|
TKeypressEvent(TKeypress key,
boolean alt,
boolean ctrl,
boolean shift)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TKeypressEvent |
dup()
Create a duplicate instance.
|
boolean |
equals(java.lang.Object rhs)
Comparison check.
|
TKeypress |
getKey()
Get keystroke.
|
int |
hashCode()
Hashcode uses all fields in equals().
|
java.lang.String |
toString()
Make human-readable description of this TKeypressEvent.
|
getTimepublic TKeypressEvent(TKeypress key)
key - the TKeypress receivedpublic TKeypressEvent(boolean isKey,
int fnKey,
int ch,
boolean alt,
boolean ctrl,
boolean shift)
isKey - is true, this is a function keyfnKey - the function key code (only valid if isKey is true)ch - the character (only valid if fnKey is false)alt - if true, ALT was pressed with this keystrokectrl - if true, CTRL was pressed with this keystrokeshift - if true, SHIFT was pressed with this keystrokepublic TKeypressEvent(TKeypress key, boolean alt, boolean ctrl, boolean shift)
key - the TKeypress receivedalt - if true, ALT was pressed with this keystrokectrl - if true, CTRL was pressed with this keystrokeshift - if true, SHIFT was pressed with this keystrokepublic boolean equals(java.lang.Object rhs)
equals in class java.lang.Objectrhs - another TKeypressEvent or TKeypress instancepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic TKeypress getKey()
public TKeypressEvent dup()
Copyright © 2019 Kevin Lamonte. Licensed MIT.