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

Static Public Member Functions

static final Controller.Type guessButtonTrait (int button_code)
 
static Controller.PortType getPortType (int nativeid)
 
static Component.Identifier getRelAxisID (int nativeID)
 
static Component.Identifier getAbsAxisID (int nativeID)
 
static Component.Identifier getButtonID (int nativeID)
 

Private Member Functions

 LinuxNativeTypesMap ()
 
void reInit ()
 

Private Attributes

final Component.Identifier relAxesIDs []
 
final Component.Identifier absAxesIDs []
 
final Component.Identifier buttonIDs []
 

Static Private Attributes

static LinuxNativeTypesMap INSTANCE = new LinuxNativeTypesMap()
 

Detailed Description

Mapping utility class between native type ints and string names or Key.Identifiers

Author
Jeremy Booth (jerem.nosp@m.y@ne.nosp@m.wdawn.nosp@m.soft.nosp@m.ware..nosp@m.com)

Constructor & Destructor Documentation

net.java.games.input.LinuxNativeTypesMap.LinuxNativeTypesMap ( )
private

create an empty, uninitialsed map

Member Function Documentation

static Component.Identifier net.java.games.input.LinuxNativeTypesMap.getAbsAxisID ( int  nativeID)
static

Gets the identifier for a absolute axis

Parameters
nativeIDThe native axis type id
Returns
The jinput id
static Component.Identifier net.java.games.input.LinuxNativeTypesMap.getButtonID ( int  nativeID)
static

Gets the identifier for a button

Parameters
nativeIDThe native button type id
Returns
The jinput id
static Controller.PortType net.java.games.input.LinuxNativeTypesMap.getPortType ( int  nativeid)
static

Return port type from a native port type int id

Parameters
nativeidThe native port type
Returns
The jinput port type
static Component.Identifier net.java.games.input.LinuxNativeTypesMap.getRelAxisID ( int  nativeID)
static

Gets the identifier for a relative axis

Parameters
nativeIDThe axis type ID
Returns
The jinput id
void net.java.games.input.LinuxNativeTypesMap.reInit ( )
private

Do the work.