APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.glass.ui.monocle

pack-priv Class KeyInput

extends Object
Class Inheritance
Imports
com.sun.glass.events.KeyEvent

Processes key input events based on changes to key state. Not thread-safe.

Field Summary

Modifier and TypeField and Description
private boolean
private static KeyInput
private IntSet
private char[]
private boolean
private KeyState

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
dispatchKeyEvent(KeyState ks, int type, int key)

pack-priv static KeyInput
private char[]
getKeyChars(KeyState state, int key)

pack-priv int
getKeyCodeForChar(char c, int hint)

pack-priv void
getState(KeyState
target into which to copy the key state
result
)

Copies the current state into the KeyState provided.

pack-priv void
setState(KeyState
The updated key state
newState
)

Called from the input processor to update the key state and send key events.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

capsLockback to summary
private boolean capsLock
instanceback to summary
private static KeyInput instance
keysback to summary
private IntSet keys
NO_CHARback to summary
private char[] NO_CHAR
numLockback to summary
private boolean numLock
stateback to summary
private KeyState state

Constructor Detail

KeyInputback to summary
pack-priv KeyInput()

Method Detail

dispatchKeyEventback to summary
private void dispatchKeyEvent(KeyState ks, int type, int key)
getInstanceback to summary
pack-priv static KeyInput getInstance()
getKeyCharsback to summary
private char[] getKeyChars(KeyState state, int key)
getKeyCodeForCharback to summary
pack-priv int getKeyCodeForChar(char c, int hint)
getStateback to summary
pack-priv void getState(KeyState result)

Copies the current state into the KeyState provided.

Parameters
result:KeyState

target into which to copy the key state

setStateback to summary
pack-priv void setState(KeyState newState)

Called from the input processor to update the key state and send key events.

Parameters
newState:KeyState

The updated key state