Class KeyBindings.UpdatedJ3Key

java.lang.Object
com.j3d.engine.interact.input.keyboard.KeyBindings.UpdatedJ3Key
Enclosing class:
KeyBindings

public static class KeyBindings.UpdatedJ3Key extends Object
UpdatedJ3Key is a return object of KeyBindings.rebindJ3KeyKeystroke(KeyStroke, J3Key) which represents the result of the update.
Author:
Lehlogonolo Poole
See Also:
  • Field Details

    • swapped

      public boolean swapped
      Whether this key was swapped with an existing key of the same keystroke.
    • otherKey

      public J3Key otherKey
      If swapped is true, this holds the J3Key of the other key. Otherwise null.
    • keyChangeSuccess

      public boolean keyChangeSuccess
      Whether the keystroke was successfully changed.
  • Constructor Details

  • Method Details

    • success

      public KeyBindings.UpdatedJ3Key success()
      Marks the key as successfully changed.
      Returns:
      The UpdatedJ3Key object for chaining.
    • swappedWith

      public KeyBindings.UpdatedJ3Key swappedWith(J3Key key)
      Marks the key as swapped with another key
      Parameters:
      key - the other key
      Returns:
      The UpdatedJ3Key object for chaining.