Game Control Plus  1.2.2
 All Classes Namespaces Functions Variables Pages
net.java.games.input.Controller.Type Class Reference

Public Member Functions

String toString ()
 
String getName ()
 
int getID ()
 

Static Public Attributes

static final Type UNKNOWN = new Type("Unknown", 0x00000001)
 
static final Type MOUSE = new Type("Mouse", 0x00000002)
 
static final Type KEYBOARD = new Type("Keyboard", 0x00000004)
 
static final Type FINGERSTICK = new Type("Fingerstick", 0x00000008)
 
static final Type GAMEPAD = new Type("Gamepad", 0x00000010)
 
static final Type HEADTRACKER = new Type("Headtracker", 0x00000020)
 
static final Type RUDDER = new Type("Rudder", 0x00000040)
 
static final Type STICK = new Type("Stick", 0x00000080)
 
static final Type TRACKBALL = new Type("Trackball", 0x00000100)
 
static final Type TRACKPAD = new Type("Trackpad", 0x00000200)
 
static final Type WHEEL = new Type("Wheel", 0x00000400)
 

Protected Member Functions

 Type (String name, int id)
 

Private Attributes

final String name
 
final int id
 

Detailed Description

Types of controller objects.
The ID number has been added for GCP so that we can apply filters if we wish

Constructor & Destructor Documentation

net.java.games.input.Controller.Type.Type ( String  name,
int  id 
)
protected

Protected constructor

Member Function Documentation

String net.java.games.input.Controller.Type.toString ( )

Returns a non-localized string description of this controller type.

Member Data Documentation

final Type net.java.games.input.Controller.Type.FINGERSTICK = new Type("Fingerstick", 0x00000008)
static

Fingerstick controller; note that this may be sometimes treated as a type of mouse or stick.

final Type net.java.games.input.Controller.Type.GAMEPAD = new Type("Gamepad", 0x00000010)
static

Gamepad controller.

final Type net.java.games.input.Controller.Type.HEADTRACKER = new Type("Headtracker", 0x00000020)
static

Headtracker controller.

final Type net.java.games.input.Controller.Type.KEYBOARD = new Type("Keyboard", 0x00000004)
static

A keyboard controller (same as BUTTONS)

See Also
#BUTTONS
final Type net.java.games.input.Controller.Type.MOUSE = new Type("Mouse", 0x00000002)
static

Mouse controller.

final String net.java.games.input.Controller.Type.name
private

Name of controller type

final Type net.java.games.input.Controller.Type.RUDDER = new Type("Rudder", 0x00000040)
static

Rudder controller.

final Type net.java.games.input.Controller.Type.STICK = new Type("Stick", 0x00000080)
static

Stick controller, such as a joystick or flightstick.

final Type net.java.games.input.Controller.Type.TRACKBALL = new Type("Trackball", 0x00000100)
static

A trackball controller; note that this may sometimes be treated as a type of mouse.

final Type net.java.games.input.Controller.Type.TRACKPAD = new Type("Trackpad", 0x00000200)
static

A trackpad, such as a tablet, touchpad, or glidepad; note that this may sometimes be treated as a type of mouse.

final Type net.java.games.input.Controller.Type.UNKNOWN = new Type("Unknown", 0x00000001)
static

Unkown controller type.

final Type net.java.games.input.Controller.Type.WHEEL = new Type("Wheel", 0x00000400)
static

A wheel controller, such as a steering wheel (note that a mouse wheel is considered part of a mouse, not a wheel controller).