public class Input extends Object
ControlLab.getInput(InputId)
.Modifier and Type | Method and Description |
---|---|
void |
addListener(SensorListener listener)
Attach a listener for
SensorEvent s. |
void |
removeListener(SensorListener listener)
Remove a listener for
SensorEvent s. |
String |
toString() |
public void addListener(SensorListener listener)
SensorEvent
s.
Multiple listeners are allowed. A listener instance will only be registered once even if it is added multiple times.
listener
- listener to addpublic void removeListener(SensorListener listener)
SensorEvent
s.listener
- listener to removeCopyright © 2016–2023. All rights reserved.