Microsoft.Xna.Framework.Input
Enum GamePadDeadZone

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

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

Specifies a type of dead zone processing to apply to Xbox 360 controller analog sticks when calling GamePad.GetState.

Author:
Halofreak1990

Enum Constant Summary
Circular
          The combined X and Y position of each stick is compared against the dead zone.
IndependantAxes
          The X and Y positions of each stick are compared against the dead zone independently.
None
          The values of each stick are not processed and are returned by GamePad.GetState as "raw" values.
 
Method Summary
static GamePadDeadZone valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GamePadDeadZone[] 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

None

public static final GamePadDeadZone None
The values of each stick are not processed and are returned by GamePad.GetState as "raw" values. This is best if you intend to implement your own dead zone processing.


IndependantAxes

public static final GamePadDeadZone IndependantAxes
The X and Y positions of each stick are compared against the dead zone independently. This setting is the default when calling GamePad.GetState.


Circular

public static final GamePadDeadZone Circular
The combined X and Y position of each stick is compared against the dead zone. This provides better control than IndependentAxes when the stick is used as a two-dimensional control surface, such as when controlling a character's view in a first-person game.

Method Detail

values

public static GamePadDeadZone[] 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 (GamePadDeadZone c : GamePadDeadZone.values())
    System.out.println(c);

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

valueOf

public static GamePadDeadZone 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