Class Gamepad.Mapping

  • Enclosing interface:
    Gamepad

    public static class Gamepad.Mapping
    extends java.lang.Object
    A (Control, Axis) tuple for identifying mode mappings.
    • Constructor Detail

      • Mapping

        public Mapping​(Gamepad.Control control,
                       Gamepad.Axis axis)
        Construct a new ModeIdentifier.
        Parameters:
        control - the control
        axis - the axis
    • Method Detail

      • getControl

        public Gamepad.Control getControl()
        Get the control.
        Returns:
        the control
      • getAxis

        public Gamepad.Axis getAxis()
        Get the axis.
        Returns:
        the axis
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object