Microsoft.Xna.Framework.Input
Enum Buttons

java.lang.Object
  extended by java.lang.Enum<Buttons>
      extended by Microsoft.Xna.Framework.Input.Buttons
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Buttons>

public enum Buttons
extends java.lang.Enum<Buttons>

Enumerates input device buttons.

Author:
Halofreak1990

Enum Constant Summary
A
          A button
B
          B button
Back
          Back button
BigButton
          Big Button
DPadDown
          Directional pad down
DPadLeft
          Directional pad left
DPadRight
          Directional pad right
DPadUp
          Directional pad up
LeftShoulder
          Left bumper (shoulder) button
LeftStick
          Left stick button (pressing the left stick)
LeftThumbstickDown
          Left stick is toward down
LeftThumbstickLeft
          Left stick is towards the left
LeftThumbstickRight
          Left stick is towards the right
LeftThumbstickUp
          Left stick is towards up
LeftTrigger
          Left trigger
RightShoulder
          Right bumper (shoulder) button
RightStick
          Right stick button (pressing the right stick)
RightThumbstickDown
          Right stick is towards down
RightThumbstickLeft
          Right stick is towards the left
RightThumbstickRight
          Right stick is towards the right
RightThumbstickUp
          Right stick is towards up
RightTrigger
          Right trigger
Start
          START button
X
          X button
Y
          Y button
 
Method Summary
 int getValue()
           
static Buttons valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Buttons[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

A

public static final Buttons A
A button


B

public static final Buttons B
B button


Back

public static final Buttons Back
Back button


BigButton

public static final Buttons BigButton
Big Button


DPadDown

public static final Buttons DPadDown
Directional pad down


DPadLeft

public static final Buttons DPadLeft
Directional pad left


DPadRight

public static final Buttons DPadRight
Directional pad right


DPadUp

public static final Buttons DPadUp
Directional pad up


LeftShoulder

public static final Buttons LeftShoulder
Left bumper (shoulder) button


LeftStick

public static final Buttons LeftStick
Left stick button (pressing the left stick)


LeftThumbstickDown

public static final Buttons LeftThumbstickDown
Left stick is toward down


LeftThumbstickLeft

public static final Buttons LeftThumbstickLeft
Left stick is towards the left


LeftThumbstickRight

public static final Buttons LeftThumbstickRight
Left stick is towards the right


LeftThumbstickUp

public static final Buttons LeftThumbstickUp
Left stick is towards up


LeftTrigger

public static final Buttons LeftTrigger
Left trigger


RightShoulder

public static final Buttons RightShoulder
Right bumper (shoulder) button


RightStick

public static final Buttons RightStick
Right stick button (pressing the right stick)


RightThumbstickDown

public static final Buttons RightThumbstickDown
Right stick is towards down


RightThumbstickLeft

public static final Buttons RightThumbstickLeft
Right stick is towards the left


RightThumbstickRight

public static final Buttons RightThumbstickRight
Right stick is towards the right


RightThumbstickUp

public static final Buttons RightThumbstickUp
Right stick is towards up


RightTrigger

public static final Buttons RightTrigger
Right trigger


Start

public static final Buttons Start
START button


X

public static final Buttons X
X button


Y

public static final Buttons Y
Y button

Method Detail

values

public static Buttons[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Buttons c : Buttons.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Buttons valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getValue

public int getValue()