Class InputBindings
java.lang.Object
dev.prozilla.pine.common.property.input.InputBindings
- All Implemented Interfaces:
InputProperty
Input bindings are connections between input keys (mouse buttons, keyboard keys, ...) and a corresponding action.
-
Field Summary
Fields inherited from interface dev.prozilla.pine.common.property.input.InputProperty
FALLBACK, INPUT_BINDING_SEPARATOR, INPUT_ELEMENT_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(InputBindings inputBindings) booleangetBinding(int index) booleanbooleanvoidsetBinding(int index, GamepadAxis value) voidsetBinding(int index, GamepadAxis... value) voidsetBinding(int index, GamepadButton value) voidsetBinding(int index, GamepadButton... value) voidsetBinding(int index, Key value) voidsetBinding(int index, Key... value) voidsetBinding(int index, MouseButton value) voidsetBinding(int index, MouseButton... value) toString()voidunbind(int index) Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.prozilla.pine.common.property.input.InputProperty
isDownProperty, isPressedProperty, toGamepadAxesProperty, toGamepadAxisProperty, toGamepadButtonProperty, toGamepadButtonsProperty, toKeyboardKeyProperty, toKeyboardKeysProperty, toMouseButtonProperty, toMouseButtonsProperty
-
Constructor Details
-
InputBindings
-
-
Method Details
-
isPressed
- Specified by:
isPressedin interfaceInputProperty
-
isDown
- Specified by:
isDownin interfaceInputProperty
-
getBinding
-
setBinding
-
setBinding
-
setBinding
-
setBinding
-
setBinding
-
setBinding
-
setBinding
-
setBinding
-
unbind
public void unbind(int index) -
equals
-
equals
-
toString
-