/** * Is this a key down arrow? * * @return whether this is a down arrow key event */ public boolean isDownArrow() { return getNativeKeyCode() == KeyCodes.KEY_DOWN; }
/** * Is this a left arrow? * * @return whether this is a left arrow key event */ public boolean isLeftArrow() { return getNativeKeyCode() == KeyCodes.KEY_LEFT; }
/** * Is this a up arrow? * * @return whether this is a right arrow key event */ public boolean isUpArrow() { return getNativeKeyCode() == KeyCodes.KEY_UP; }
/** * Is this a right arrow? * * @return whether this is a right arrow key event */ public boolean isRightArrow() { return getNativeKeyCode() == KeyCodes.KEY_RIGHT; }
@Override public String toDebugString() { return super.toDebugString() + "[" + getNativeKeyCode() + "]"; } }
/** * Is this a key down arrow? * * @return whether this is a down arrow key event */ public boolean isDownArrow() { return getNativeKeyCode() == KeyCodes.KEY_DOWN; }
/** * Is this a left arrow? * * @return whether this is a left arrow key event */ public boolean isLeftArrow() { return getNativeKeyCode() == KeyCodes.KEY_LEFT; }
/** * Is this a up arrow? * * @return whether this is a right arrow key event */ public boolean isUpArrow() { return getNativeKeyCode() == KeyCodes.KEY_UP; }
/** * Is this a key down arrow? * * @return whether this is a down arrow key event */ public boolean isDownArrow() { return getNativeKeyCode() == KeyCodes.KEY_DOWN; }
/** * Is this a left arrow? * * @return whether this is a left arrow key event */ public boolean isLeftArrow() { return getNativeKeyCode() == KeyCodes.KEY_LEFT; }
/** * Is this a right arrow? * * @return whether this is a right arrow key event */ public boolean isRightArrow() { return getNativeKeyCode() == KeyCodes.KEY_RIGHT; }
/** * Is this a right arrow? * * @return whether this is a right arrow key event */ public boolean isRightArrow() { return getNativeKeyCode() == KeyCodes.KEY_RIGHT; }
/** * Is this a up arrow? * * @return whether this is a right arrow key event */ public boolean isUpArrow() { return getNativeKeyCode() == KeyCodes.KEY_UP; }
@Override public String toDebugString() { return super.toDebugString() + "[" + getNativeKeyCode() + "]"; } }
@Override public String toDebugString() { return super.toDebugString() + "[" + getNativeKeyCode() + "]"; } }