Class LinearJoystickMode

  • All Implemented Interfaces:
    JoystickMode, java.util.function.Function<java.lang.Double,​java.lang.Double>

    public final class LinearJoystickMode
    extends java.lang.Object
    implements JoystickMode
    The most basic possible JoystickMode. Simply returns the value it is given with no adjustment.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double adjust​(double raw)
      Applies some transformation function to the input and returns a result.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • LinearJoystickMode

        public LinearJoystickMode()
    • Method Detail

      • adjust

        public double adjust​(double raw)
        Applies some transformation function to the input and returns a result.
        Specified by:
        adjust in interface JoystickMode
        Parameters:
        raw - the value to adjust
        Returns:
        the adjusted value