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