public interface InputDeviceListener
InputDeviceListener
interface defines a method that
is called in response to InputDevice
events. Examples of
InputDevice
events include the addition or removal of new
InputDevices
and changes to the hardware state or assignation
status of an existing InputDevice
.
A InputDeviceListener may be added using the static
KeyManager.addInputDeviceListener
method. It will then be notified about
changes to all InputDevices
.Modifier and Type | Method and Description |
---|---|
void |
hardwareStateChanged(InputDevice id,
boolean newState)
This method is called when the state of a InputDevice's hardware changes.
|
void |
inputDeviceAdded(InputDevice id)
This method is called when a new InputDevice is added to the embedded
device.
|
void |
inputDeviceRemoved(InputDevice id)
This method is called when an InputDevice has been removed from the
embedded device.
|
void hardwareStateChanged(InputDevice id, boolean newState)
false
or
true
argument for the newState
parameter,
respectively.id
- the InputDevicenewState
- false
if the InputDevice
has been
unassigned, true
if it has been re-assigned.void inputDeviceAdded(InputDevice id)
id
- the InputDevice that has been added to the devicevoid inputDeviceRemoved(InputDevice id)
id
- the InputDevice that has been removed from the deviceCopyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.