Interface SensorButtonListener

    • Method Summary

      All Methods Instance Methods Abstract 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 released​(SensorEvent e)
      This method is called when a sensor's button is released.
    • Method Detail

      • pressed

        void pressed​(SensorEvent e)
        This method is called when a sensor's button is pressed.
        Parameters:
        e - the sensor event
      • released

        void released​(SensorEvent e)
        This method is called when a sensor's button is released.
        Parameters:
        e - the sensor event
      • dragged

        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. The sensor value has not necessarily changed from the last drag event.
        Parameters:
        e - the sensor event
      • clicked

        void clicked​(SensorEvent e)
        This method is currently not used by SensorEventAgent, but is included here for future possible development. Its implementations should remain empty for the present.