Class SensorInputAdaptor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clicked​(SensorEvent e)
      This method is currently not used by SensorEventAgent, but is included here for future possible development.
      void dragged​(SensorEvent e)
      This method is called with each invocation of the dispatchEvents method of SensorEventAgent if any button bound to the listener is down and has not changed state since the last invocation.
      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.
      void released​(SensorEvent e)
      This method is called when a sensor's button is released.
      • Methods inherited from class java.lang.Object

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

      • SensorInputAdaptor

        public SensorInputAdaptor()
    • Method Detail

      • dragged

        public void dragged​(SensorEvent e)
        Description copied from interface: SensorButtonListener
        This method is called with each invocation of the dispatchEvents method of SensorEventAgent if 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.
        Specified by:
        dragged in interface SensorButtonListener
        Parameters:
        e - the sensor event
      • clicked

        public void clicked​(SensorEvent e)
        Description copied from interface: SensorButtonListener
        This method is currently not used by SensorEventAgent, but is included here for future possible development. Its implementations should remain empty for the present.
        Specified by:
        clicked in interface SensorButtonListener
      • read

        public void read​(SensorEvent e)
        Description copied from interface: SensorReadListener
        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. The sensor read value has not necessarily changed since the last read event.
        Specified by:
        read in interface SensorReadListener
        Parameters:
        e - the sensor event