/** * Returns the mouse wheel, or null if no mouse wheel is present. */ public Component getWheel() { return getComponent(Component.Identifier.Axis.Z); }
/** * Returns forth mouse button, null if the mouse hasn't * got one. */ public Component getButton3() { return getComponent(Component.Identifier.Button._3); }
/** * Returns the mouse wheel, or null if no mouse wheel is present. */ public Component getWheel() { return getComponent(Component.Identifier.Axis.Z); }
/** * Returns the left or primary mouse button, never null. */ public Component getPrimaryButton() { Component primaryButton = getComponent(Component.Identifier.Button.LEFT); if(primaryButton==null) { primaryButton = getComponent(Component.Identifier.Button._1); } return primaryButton; }
/** * Returns the side or 4th mouse button, null if the mouse has * fewer than 4 buttons. */ public Component getSide() { return getComponent(Component.Identifier.Button.SIDE); }
/** * Returns the right, null if the mouse is a single-button mouse. */ public Component getRight() { return getComponent(Component.Identifier.Button.RIGHT); }
/** * Returns fifth mouse button, null if the mouse hasn't * got one. */ public Component getButton4() { return getComponent(Component.Identifier.Button._4); }
/** * Returns the middle or tertiary mouse button, null if the mouse has * fewer than three buttons. */ public Component getTertiaryButton() { Component tertiaryButton = getComponent(Component.Identifier.Button.MIDDLE); if(tertiaryButton==null) { tertiaryButton = getComponent(Component.Identifier.Button._3); } return tertiaryButton; }
/** * Returns the right, null if the mouse is a single-button mouse. */ public Component getRight() { return getComponent(Component.Identifier.Button.RIGHT); }
/** * Returns the side or 4th mouse button, null if the mouse has * fewer than 4 buttons. */ public Component getSide() { return getComponent(Component.Identifier.Button.SIDE); }
/** * Returns the right, null if the mouse is a single-button mouse. */ public Component getRight() { return getComponent(Component.Identifier.Button.RIGHT); }
/** * Returns the middle or tertiary mouse button, null if the mouse has * fewer than three buttons. */ public Component getTertiaryButton() { Component tertiaryButton = getComponent(Component.Identifier.Button.MIDDLE); if(tertiaryButton==null) { tertiaryButton = getComponent(Component.Identifier.Button._3); } return tertiaryButton; }
/** * Returns the left mouse button. */ public Component getLeft() { return getComponent(Component.Identifier.Button.LEFT); }
/** * Returns the extra or 5th mouse button, null if the mouse has * fewer than 5 buttons. */ public Component getExtra() { return getComponent(Component.Identifier.Button.EXTRA); }
/** * Returns the back mouse button, null if the mouse hasn't * got one. */ public Component getBack() { return getComponent(Component.Identifier.Button.BACK); }
/** * Returns the left mouse button. */ public Component getLeft() { return getComponent(Component.Identifier.Button.LEFT); }
/** * Returns the x-axis for the mouse ball, never null. */ public Component getX() { return getComponent(Component.Identifier.Axis.X); }
/** * Returns the right or secondary mouse button, null if the mouse is * a single-button mouse. */ public Component getSecondaryButton() { Component secondaryButton = getComponent(Component.Identifier.Button.RIGHT); if(secondaryButton==null) { secondaryButton = getComponent(Component.Identifier.Button._2); } return secondaryButton; }
/** * Returns forth mouse button, null if the mouse hasn't * got one. */ public Component getButton3() { return getComponent(Component.Identifier.Button._3); }
/** * Returns the left mouse button. */ public Component getLeft() { return getComponent(Component.Identifier.Button.LEFT); }