Package ca.team3161.lib.utils.controls
Class Gamepad.Mapping
- java.lang.Object
-
- ca.team3161.lib.utils.controls.Gamepad.Mapping
-
- Enclosing interface:
- Gamepad
public static class Gamepad.Mapping extends java.lang.Object
A (Control, Axis) tuple for identifying mode mappings.
-
-
Constructor Summary
Constructors Constructor Description Mapping(Gamepad.Control control, Gamepad.Axis axis)
Construct a new ModeIdentifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Gamepad.Axis
getAxis()
Get the axis.Gamepad.Control
getControl()
Get the control.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Mapping
public Mapping(Gamepad.Control control, Gamepad.Axis axis)
Construct a new ModeIdentifier.- Parameters:
control
- the controlaxis
- 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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-