Package | Description |
---|---|
javax.microedition.key |
[OPTIONAL] Support of embedded device key input.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Iterator<InputDevice> |
KeyManager.getHeadlessInputDevices()
Returns an iterator over all "headless" input devices
currently attached to the device, like independent keypads or button
fields.
|
static java.util.Iterator<InputDevice> |
KeyManager.getInputDevices()
Returns an iterator over all input devices currently attached to the
device.
|
Modifier and Type | Method and Description |
---|---|
void |
InputDeviceListener.hardwareStateChanged(InputDevice id,
boolean newState)
This method is called when the state of a InputDevice's hardware changes.
|
void |
InputDeviceListener.inputDeviceAdded(InputDevice id)
This method is called when a new InputDevice is added to the embedded
device.
|
void |
InputDeviceListener.inputDeviceRemoved(InputDevice id)
This method is called when an InputDevice has been removed from the
embedded device.
|
void |
KeyListener.keyPressed(InputDevice source,
int keyCode,
int keyModifier)
Called when a key is pressed.
|
void |
KeyListener.keyReleased(InputDevice source,
int keyCode,
int keyModifier)
Called when a key is released.
|
void |
KeyListener.keyRepeated(InputDevice source,
int keyCode,
int keyModifier)
Called when a key is repeated (held down).
|
Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.