Class KeyBindings.UpdatedJ3Key
java.lang.Object
com.j3d.engine.interact.input.keyboard.KeyBindings.UpdatedJ3Key
- Enclosing class:
KeyBindings
UpdatedJ3Key is a return object of
KeyBindings.rebindJ3KeyKeystroke(KeyStroke, J3Key)
which represents the result of the update.- Author:
- Lehlogonolo Poole
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether the keystroke was successfully changed.Ifswappedis true, this holds the J3Key of the other key.booleanWhether this key was swapped with an existing key of the same keystroke. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsuccess()Marks the key as successfully changed.swappedWith(J3Key key) Marks the key as swapped with another key
-
Field Details
-
swapped
public boolean swappedWhether this key was swapped with an existing key of the same keystroke. -
otherKey
Ifswappedis true, this holds the J3Key of the other key. Otherwise null. -
keyChangeSuccess
public boolean keyChangeSuccessWhether the keystroke was successfully changed.
-
-
Constructor Details
-
UpdatedJ3Key
public UpdatedJ3Key()Default constructor forKeyBindings.UpdatedJ3Key.
-
-
Method Details
-
success
Marks the key as successfully changed.- Returns:
- The UpdatedJ3Key object for chaining.
-
swappedWith
Marks the key as swapped with another key- Parameters:
key- the other key- Returns:
- The UpdatedJ3Key object for chaining.
-