Package com.jme3.input
Interface KeyInput
- All Superinterfaces:
Input
- All Known Implementing Classes:
AwtKeyInput
,AWTKeyInput
,DummyKeyInput
,GlfwKeyInput
,GlfwKeyInputVR
,LwjglKeyInput
A specific API for interfacing with the keyboard.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
0 key.static final int
1 key.static final int
2 key.static final int
3 key.static final int
4 key.static final int
5 key.static final int
6 key.static final int
7 key.static final int
8 key.static final int
9 key.static final int
a key.static final int
+ key (num pad).static final int
' key.static final int
static final int
@ key (NEC PC98).static final int
ax key (Japanese).static final int
b key.static final int
back key.static final int
\ key.static final int
c key.static final int
caps lock key.static final int
circum flex key (Japanese).static final int
: key (NEC PC98)static final int
, key.static final int
convert key (Japanese).static final int
d key.static final int
.static final int
delete key.static final int
/ key (num pad).static final int
down arrow key.static final int
e key.static final int
end key.static final int
= key.static final int
escape key.static final int
f key.static final int
F1 key.static final int
F10 key.static final int
F11 key.static final int
F12 key.static final int
F13 key.static final int
F14 key.static final int
F15 key.static final int
F2 key.static final int
F3 key.static final int
F4 key.static final int
F5 key.static final int
F6 key.static final int
F7 key.static final int
F8 key.static final int
F9 key.static final int
g key.static final int
` key.static final int
h key.static final int
home key.static final int
i key.static final int
insert key.static final int
j key.static final int
k key.static final int
kana key (Japanese).static final int
kanji key (Japanese).static final int
l key.static final int
the last key.static final int
[ key.static final int
left control key.static final int
left arrow key.static final int
left alt key.static final int
Left "Windows" key on PC keyboards, left "Option" key on Mac keyboards.static final int
left shift key.static final int
m key.static final int
- key.static final int
* key (on keypad).static final int
n key.static final int
PgDn key.static final int
noconvert key (Japanese).static final int
NumLK key.static final int
0 key (num pad).static final int
1 key (num pad).static final int
2 key (num pad).static final int
3 key (num pad).static final int
4 key (num pad).static final int
5 key (num pad).static final int
6 key (num pad).static final int
7 key (num pad).static final int
8 key (num pad).static final int
9 key (num pad).static final int
, key on num pad (NEC PC98).static final int
Enter key (num pad).static final int
= on num pad (NEC PC98).static final int
o key.static final int
p key.static final int
pause key.static final int
.static final int
PgDn key.static final int
PgUp key.static final int
power key.static final int
PgUp key.static final int
PrtScr key.static final int
q key.static final int
r key.static final int
] key.static final int
right control key.static final int
enter (main keyboard) key.static final int
right arrow key.static final int
right alt key.static final int
Right "Windows" key on PC keyboards, right "Option" key on Mac keyboards.static final int
right shift key.static final int
s key.static final int
Scroll lock key.static final int
; key.static final int
/ key (main keyboard).static final int
sleep key.static final int
space key.static final int
stop key (NEC PC98).static final int
- key (num pad).static final int
SysRq key.static final int
t key.static final int
tab key.static final int
u key.static final int
_ key (NEC PC98).static final int
unmapped key.static final int
(J3100).static final int
up arrow key.static final int
v key.static final int
w key.static final int
x key.static final int
y key.static final int
yen key (Japanese).static final int
z key. -
Method Summary
Modifier and TypeMethodDescriptiongetKeyName
(int key) Determine the name of the specified key in the current system language.Methods inherited from interface com.jme3.input.Input
destroy, getInputTimeNanos, initialize, isInitialized, setInputListener, update
-
Field Details
-
KEY_UNKNOWN
static final int KEY_UNKNOWNunmapped key.- See Also:
-
KEY_ESCAPE
static final int KEY_ESCAPEescape key.- See Also:
-
KEY_1
static final int KEY_11 key.- See Also:
-
KEY_2
static final int KEY_22 key.- See Also:
-
KEY_3
static final int KEY_33 key.- See Also:
-
KEY_4
static final int KEY_44 key.- See Also:
-
KEY_5
static final int KEY_55 key.- See Also:
-
KEY_6
static final int KEY_66 key.- See Also:
-
KEY_7
static final int KEY_77 key.- See Also:
-
KEY_8
static final int KEY_88 key.- See Also:
-
KEY_9
static final int KEY_99 key.- See Also:
-
KEY_0
static final int KEY_00 key.- See Also:
-
KEY_MINUS
static final int KEY_MINUS- key.- See Also:
-
KEY_EQUALS
static final int KEY_EQUALS= key.- See Also:
-
KEY_BACK
static final int KEY_BACKback key.- See Also:
-
KEY_TAB
static final int KEY_TABtab key.- See Also:
-
KEY_Q
static final int KEY_Qq key.- See Also:
-
KEY_W
static final int KEY_Ww key.- See Also:
-
KEY_E
static final int KEY_Ee key.- See Also:
-
KEY_R
static final int KEY_Rr key.- See Also:
-
KEY_T
static final int KEY_Tt key.- See Also:
-
KEY_Y
static final int KEY_Yy key.- See Also:
-
KEY_U
static final int KEY_Uu key.- See Also:
-
KEY_I
static final int KEY_Ii key.- See Also:
-
KEY_O
static final int KEY_Oo key.- See Also:
-
KEY_P
static final int KEY_Pp key.- See Also:
-
KEY_LBRACKET
static final int KEY_LBRACKET[ key.- See Also:
-
KEY_RBRACKET
static final int KEY_RBRACKET] key.- See Also:
-
KEY_RETURN
static final int KEY_RETURNenter (main keyboard) key.- See Also:
-
KEY_LCONTROL
static final int KEY_LCONTROLleft control key.- See Also:
-
KEY_A
static final int KEY_Aa key.- See Also:
-
KEY_S
static final int KEY_Ss key.- See Also:
-
KEY_D
static final int KEY_Dd key.- See Also:
-
KEY_F
static final int KEY_Ff key.- See Also:
-
KEY_G
static final int KEY_Gg key.- See Also:
-
KEY_H
static final int KEY_Hh key.- See Also:
-
KEY_J
static final int KEY_Jj key.- See Also:
-
KEY_K
static final int KEY_Kk key.- See Also:
-
KEY_L
static final int KEY_Ll key.- See Also:
-
KEY_SEMICOLON
static final int KEY_SEMICOLON; key.- See Also:
-
KEY_APOSTROPHE
static final int KEY_APOSTROPHE' key.- See Also:
-
KEY_GRAVE
static final int KEY_GRAVE` key.- See Also:
-
KEY_LSHIFT
static final int KEY_LSHIFTleft shift key.- See Also:
-
KEY_BACKSLASH
static final int KEY_BACKSLASH\ key.- See Also:
-
KEY_Z
static final int KEY_Zz key.- See Also:
-
KEY_X
static final int KEY_Xx key.- See Also:
-
KEY_C
static final int KEY_Cc key.- See Also:
-
KEY_V
static final int KEY_Vv key.- See Also:
-
KEY_B
static final int KEY_Bb key.- See Also:
-
KEY_N
static final int KEY_Nn key.- See Also:
-
KEY_M
static final int KEY_Mm key.- See Also:
-
KEY_COMMA
static final int KEY_COMMA, key.- See Also:
-
KEY_PERIOD
static final int KEY_PERIOD. key (main keyboard).- See Also:
-
KEY_SLASH
static final int KEY_SLASH/ key (main keyboard).- See Also:
-
KEY_RSHIFT
static final int KEY_RSHIFTright shift key.- See Also:
-
KEY_MULTIPLY
static final int KEY_MULTIPLY* key (on keypad).- See Also:
-
KEY_LMENU
static final int KEY_LMENUleft alt key.- See Also:
-
KEY_SPACE
static final int KEY_SPACEspace key.- See Also:
-
KEY_CAPITAL
static final int KEY_CAPITALcaps lock key.- See Also:
-
KEY_F1
static final int KEY_F1F1 key.- See Also:
-
KEY_F2
static final int KEY_F2F2 key.- See Also:
-
KEY_F3
static final int KEY_F3F3 key.- See Also:
-
KEY_F4
static final int KEY_F4F4 key.- See Also:
-
KEY_F5
static final int KEY_F5F5 key.- See Also:
-
KEY_F6
static final int KEY_F6F6 key.- See Also:
-
KEY_F7
static final int KEY_F7F7 key.- See Also:
-
KEY_F8
static final int KEY_F8F8 key.- See Also:
-
KEY_F9
static final int KEY_F9F9 key.- See Also:
-
KEY_F10
static final int KEY_F10F10 key.- See Also:
-
KEY_NUMLOCK
static final int KEY_NUMLOCKNumLK key.- See Also:
-
KEY_SCROLL
static final int KEY_SCROLLScroll lock key.- See Also:
-
KEY_NUMPAD7
static final int KEY_NUMPAD77 key (num pad).- See Also:
-
KEY_NUMPAD8
static final int KEY_NUMPAD88 key (num pad).- See Also:
-
KEY_NUMPAD9
static final int KEY_NUMPAD99 key (num pad).- See Also:
-
KEY_SUBTRACT
static final int KEY_SUBTRACT- key (num pad).- See Also:
-
KEY_NUMPAD4
static final int KEY_NUMPAD44 key (num pad).- See Also:
-
KEY_NUMPAD5
static final int KEY_NUMPAD55 key (num pad).- See Also:
-
KEY_NUMPAD6
static final int KEY_NUMPAD66 key (num pad).- See Also:
-
KEY_ADD
static final int KEY_ADD+ key (num pad).- See Also:
-
KEY_NUMPAD1
static final int KEY_NUMPAD11 key (num pad).- See Also:
-
KEY_NUMPAD2
static final int KEY_NUMPAD22 key (num pad).- See Also:
-
KEY_NUMPAD3
static final int KEY_NUMPAD33 key (num pad).- See Also:
-
KEY_NUMPAD0
static final int KEY_NUMPAD00 key (num pad).- See Also:
-
KEY_DECIMAL
static final int KEY_DECIMAL. key (num pad).- See Also:
-
KEY_F11
static final int KEY_F11F11 key.- See Also:
-
KEY_F12
static final int KEY_F12F12 key.- See Also:
-
KEY_F13
static final int KEY_F13F13 key.- See Also:
-
KEY_F14
static final int KEY_F14F14 key.- See Also:
-
KEY_F15
static final int KEY_F15F15 key.- See Also:
-
KEY_KANA
static final int KEY_KANAkana key (Japanese).- See Also:
-
KEY_CONVERT
static final int KEY_CONVERTconvert key (Japanese).- See Also:
-
KEY_NOCONVERT
static final int KEY_NOCONVERTnoconvert key (Japanese).- See Also:
-
KEY_YEN
static final int KEY_YENyen key (Japanese).- See Also:
-
KEY_NUMPADEQUALS
static final int KEY_NUMPADEQUALS= on num pad (NEC PC98).- See Also:
-
KEY_CIRCUMFLEX
static final int KEY_CIRCUMFLEXcircum flex key (Japanese).- See Also:
-
KEY_AT
static final int KEY_AT@ key (NEC PC98).- See Also:
-
KEY_COLON
static final int KEY_COLON: key (NEC PC98)- See Also:
-
KEY_UNDERLINE
static final int KEY_UNDERLINE_ key (NEC PC98).- See Also:
-
KEY_KANJI
static final int KEY_KANJIkanji key (Japanese).- See Also:
-
KEY_STOP
static final int KEY_STOPstop key (NEC PC98).- See Also:
-
KEY_AX
static final int KEY_AXax key (Japanese).- See Also:
-
KEY_UNLABELED
static final int KEY_UNLABELED(J3100).- See Also:
-
KEY_PRTSCR
static final int KEY_PRTSCRPrtScr key. Note: for use on keyboards with a PrtScr key that is separate from the SysRq key. Most keyboards combine SysRq and PrtScr so if the intent is to actually capture the user's desire to capture the screen then SysRq is the most likely scan code. Use PrtScr to catch the rest (laptops, mini-keyboards, etc.)- See Also:
-
KEY_NUMPADENTER
static final int KEY_NUMPADENTEREnter key (num pad).- See Also:
-
KEY_RCONTROL
static final int KEY_RCONTROLright control key.- See Also:
-
KEY_NUMPADCOMMA
static final int KEY_NUMPADCOMMA, key on num pad (NEC PC98).- See Also:
-
KEY_DIVIDE
static final int KEY_DIVIDE/ key (num pad).- See Also:
-
KEY_SYSRQ
static final int KEY_SYSRQSysRq key.- See Also:
-
KEY_RMENU
static final int KEY_RMENUright alt key.- See Also:
-
KEY_PAUSE
static final int KEY_PAUSEpause key.- See Also:
-
KEY_HOME
static final int KEY_HOMEhome key.- See Also:
-
KEY_UP
static final int KEY_UPup arrow key.- See Also:
-
KEY_PRIOR
static final int KEY_PRIORPgUp key.- See Also:
-
KEY_PGUP
static final int KEY_PGUPPgUp key.- See Also:
-
KEY_LEFT
static final int KEY_LEFTleft arrow key.- See Also:
-
KEY_RIGHT
static final int KEY_RIGHTright arrow key.- See Also:
-
KEY_END
static final int KEY_ENDend key.- See Also:
-
KEY_DOWN
static final int KEY_DOWNdown arrow key.- See Also:
-
KEY_NEXT
static final int KEY_NEXTPgDn key.- See Also:
-
KEY_PGDN
static final int KEY_PGDNPgDn key.- See Also:
-
KEY_INSERT
static final int KEY_INSERTinsert key.- See Also:
-
KEY_DELETE
static final int KEY_DELETEdelete key.- See Also:
-
KEY_LMETA
static final int KEY_LMETALeft "Windows" key on PC keyboards, left "Option" key on Mac keyboards.- See Also:
-
KEY_RMETA
static final int KEY_RMETARight "Windows" key on PC keyboards, right "Option" key on Mac keyboards.- See Also:
-
KEY_APPS
static final int KEY_APPS- See Also:
-
KEY_POWER
static final int KEY_POWERpower key.- See Also:
-
KEY_SLEEP
static final int KEY_SLEEPsleep key.- See Also:
-
KEY_LAST
static final int KEY_LASTthe last key.- See Also:
-
-
Method Details
-
getKeyName
Determine the name of the specified key in the current system language.- Parameters:
key
- The keycode fromKeyInput
- Returns:
- the name of the key
-