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.ObjectA (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 booleanequals(java.lang.Object o)Gamepad.AxisgetAxis()Get the axis.Gamepad.ControlgetControl()Get the control.inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-