public interface ControllerListener
isConnected
parameter, or you can have different listeners registered
for connection and disconnection events and ignore the isConnected
parameter.
Note: Your implementation will not be called on the Event Dispatching Thread. If you
want to affect Swing controls, you will need to use java.awt.EventQueue.invokeLater
or java.awt.EventQueue.invokeAndWait
. Alternatively, you can implement
the ControllerListenerEDT
interface instead.
Modifier and Type | Method and Description |
---|---|
void |
controller(Controller controller,
boolean isConnected)
J360Controller will call this method when a controller is physically connected
or disconnected from your computer.
|
void controller(Controller controller, boolean isConnected)
controller
- Controller
object for the controller changing connection
status.isConnected
- true
if the controller has been connected,
false
if it has been disconnected.