public class SimpleXInputDeviceListener extends Object implements XInputDeviceListener
XInputDeviceListener methods for easier subclassing.| Constructor and Description |
|---|
SimpleXInputDeviceListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
buttonChanged(XInputButton button,
boolean pressed)
Called when a button is pressed or released.
|
void |
connected()
Called when the device is connected.
|
void |
disconnected()
Called when the device is disconnected.
|
public void connected()
XInputDeviceListenerconnected in interface XInputDeviceListenerpublic void disconnected()
XInputDeviceListenerdisconnected in interface XInputDeviceListenerpublic void buttonChanged(XInputButton button, boolean pressed)
XInputDeviceListenerbuttonChanged in interface XInputDeviceListenerbutton - the buttonpressed - true if the button was pressed, false if released.Copyright © 2018. All rights reserved.