Package com.ardor3d.input
Class KeyEvent
java.lang.Object
com.ardor3d.input.KeyEvent
Describes the state of a key - either it has been pressed or it has been released. Also keeps track of which
character the event corresponds to - the difference between a key and a character is that a key corresponds to a
physical key on the keyboard, whereas the character is the character that a keypress combination represents. Keys are
universal and mapped into the Key enum, whereas characters can be any char value. Some examples of the differences:
- On almost any keyboard, pressing
Key.EIGHT
results in the character '8'. - On an English keyboard, pressing
Key.EIGHT
when theKey.LSHIFT
is down leads to the character '*'. - On a Swedish keyboard, pressing
Key.EIGHT
when theKey.LSHIFT
is down leads to the character '('.
-
Field Summary
-
Constructor Summary
-
Method Summary