Package ca.team3161.lib.utils.controls
Class Gamepad.Binding
- java.lang.Object
-
- ca.team3161.lib.utils.controls.Gamepad.Binding
-
- Enclosing interface:
- Gamepad
public static class Gamepad.Binding extends java.lang.Object
A (Button, PressType) tuple for identifying button bindings.
-
-
Constructor Summary
Constructors Constructor Description Binding(Gamepad.Button button, Gamepad.PressType pressType)
Construct a new Binding identifier.Binding(java.util.Collection<Gamepad.Button> buttons, Gamepad.PressType pressType)
Construct a new Binding identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Set<Gamepad.Button>
getButtons()
Get the button.Gamepad.PressType
getPressType()
Get the press type.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Binding
public Binding(java.util.Collection<Gamepad.Button> buttons, Gamepad.PressType pressType)
Construct a new Binding identifier.- Parameters:
buttons
- the buttonspressType
- the press type
-
Binding
public Binding(Gamepad.Button button, Gamepad.PressType pressType)
Construct a new Binding identifier.- Parameters:
button
- the buttonpressType
- the press type
-
-
Method Detail
-
getButtons
public java.util.Set<Gamepad.Button> getButtons()
Get the button.- Returns:
- the button
-
getPressType
public Gamepad.PressType getPressType()
Get the press type.- Returns:
- the press type.
-
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
-
-