Class WandViewBehavior.ResetViewListener

    • Constructor Summary

      Constructors 
      Constructor Description
      ResetViewListener​(Sensor s, int count)
      Creates a sensor listener that resets the view when the specified number of buttons are down simultaneously.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResetViewListener

        public ResetViewListener​(Sensor s,
                                 int count)
        Creates a sensor listener that resets the view when the specified number of buttons are down simultaneously.
        Parameters:
        s - the sensor to listen to
        count - the number of buttons that must be down simultaneously