public class WandViewBehavior.ResetViewListener extends SensorInputAdaptor
| Constructor and Description |
|---|
ResetViewListener(Sensor s,
int count)
Creates a sensor listener that resets the view when the specified
number of buttons are down simultaneously.
|
| Modifier and Type | Method and Description |
|---|---|
void |
pressed(SensorEvent e)
This method is called when a sensor's button is pressed.
|
void |
read(SensorEvent e)
This method is called each time the
dispatchEvents
method of SensorEventAgent is called and none of a
sensor's buttons have been handled by a button listener. |
clicked, dragged, releasedpublic ResetViewListener(Sensor s, int count)
s - the sensor to listen tocount - the number of buttons that must be down simultaneouslypublic void pressed(SensorEvent e)
SensorButtonListenerpressed in interface SensorButtonListenerpressed in class SensorInputAdaptore - the sensor eventpublic void read(SensorEvent e)
SensorReadListenerdispatchEvents
method of SensorEventAgent is called and none of a
sensor's buttons have been handled by a button listener. The
sensor read value has not necessarily changed since the last read
event.read in interface SensorReadListenerread in class SensorInputAdaptore - the sensor eventCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.