Interface SensorButtonListener
- All Known Implementing Classes:
SensorInputAdaptor,WandViewBehavior.GrabViewListener6D,WandViewBehavior.ListenerBase,WandViewBehavior.ResetViewListener,WandViewBehavior.RotationListener2D,WandViewBehavior.RotationListener6D,WandViewBehavior.ScaleListener2D,WandViewBehavior.ScaleListener6D,WandViewBehavior.TranslationListener2D,WandViewBehavior.TranslationListener6D
public interface SensorButtonListener
This defines the interface for handling a sensor's button events in
conjunction with a
SensorEventAgent instance.
The events passed to this listener's methods are ephemeral; they
are only valid until the listener has returned. If a listener needs to
retain the event it must be copied using the
SensorEvent(SensorEvent) constructor.
- Since:
- Java 3D 1.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is currently not used bySensorEventAgent, but is included here for future possible development.voidThis method is called with each invocation of thedispatchEventsmethod ofSensorEventAgentif any button bound to the listener is down and has not changed state since the last invocation.voidThis method is called when a sensor's button is pressed.voidThis method is called when a sensor's button is released.
-
Method Details
-
pressed
This method is called when a sensor's button is pressed.- Parameters:
e- the sensor event
-
released
This method is called when a sensor's button is released.- Parameters:
e- the sensor event
-
dragged
This method is called with each invocation of thedispatchEventsmethod ofSensorEventAgentif any button bound to the listener is down and has not changed state since the last invocation. The sensor value has not necessarily changed from the last drag event.- Parameters:
e- the sensor event
-
clicked
This method is currently not used bySensorEventAgent, but is included here for future possible development. Its implementations should remain empty for the present.
-