net.java.games.input
Class LinuxNativeTypesMap

java.lang.Object
  extended by net.java.games.input.LinuxNativeTypesMap

 class LinuxNativeTypesMap
extends java.lang.Object

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


Method Summary
static Component.Identifier getAbsAxisID(int nativeID)
          Gets the identifier for a absolute axis
static Component.Identifier getButtonID(int nativeID)
          Gets the identifier for a button
static Controller.PortType getPortType(int nativeid)
          Return port type from a native port type int id
static Component.Identifier getRelAxisID(int nativeID)
          Gets the identifier for a relative axis
static Controller.Type guessButtonTrait(int button_code)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

guessButtonTrait

public static final Controller.Type guessButtonTrait(int button_code)

getPortType

public static Controller.PortType getPortType(int nativeid)
Return port type from a native port type int id

Parameters:
nativeid - The native port type
Returns:
The jinput port type

getRelAxisID

public static Component.Identifier getRelAxisID(int nativeID)
Gets the identifier for a relative axis

Parameters:
nativeID - The axis type ID
Returns:
The jinput id

getAbsAxisID

public static Component.Identifier getAbsAxisID(int nativeID)
Gets the identifier for a absolute axis

Parameters:
nativeID - The native axis type id
Returns:
The jinput id

getButtonID

public static Component.Identifier getButtonID(int nativeID)
Gets the identifier for a button

Parameters:
nativeID - The native button type id
Returns:
The jinput id