Game Control Plus  1.2.2
 All Classes Namespaces Functions Variables Pages
net.java.games.input.LinuxEventDevice Class Reference
Inheritance diagram for net.java.games.input.LinuxEventDevice:

Public Member Functions

 LinuxEventDevice (String filename) throws IOException
 
final Controller.Type getType ()
 
final Rumbler[] getRumblers ()
 
final synchronized int uploadRumbleEffect (int id, int trigger_button, int direction, int trigger_interval, int replay_length, int replay_delay, int strong_magnitude, int weak_magnitude) throws IOException
 
final synchronized int uploadConstantEffect (int id, int trigger_button, int direction, int trigger_interval, int replay_length, int replay_delay, int constant_level, int constant_env_attack_length, int constant_env_attack_level, int constant_env_fade_length, int constant_env_fade_level) throws IOException
 
final synchronized void writeEvent (int type, int code, int value) throws IOException
 
final void registerComponent (LinuxAxisDescriptor desc, LinuxComponent component)
 
final LinuxComponent mapDescriptor (LinuxAxisDescriptor desc)
 
final Controller.PortType getPortType () throws IOException
 
final LinuxInputID getInputID ()
 
final int getNumEffects () throws IOException
 
final synchronized boolean getNextEvent (LinuxEvent linux_event) throws IOException
 
final synchronized void getAbsInfo (int abs_axis, LinuxAbsInfo abs_info) throws IOException
 
final List getComponents ()
 
final synchronized void pollKeyStates () throws IOException
 
final boolean isKeySet (int bit)
 
final String getName ()
 
synchronized final void close () throws IOException
 

Static Public Member Functions

static final boolean isBitSet (byte[] bits, int bit)
 

Protected Member Functions

void finalize () throws IOException
 

Package Functions

final void eraseEffect (int id) throws IOException
 

Private Member Functions

final Controller.Type guessType () throws IOException
 
final Controller.Type guessTypeFromUsages () throws IOException
 
final Controller.Type guessTypeFromComponents () throws IOException
 
final Rumbler[] enumerateRumblers ()
 
final LinuxInputID getDeviceInputID () throws IOException
 
final int getVersion () throws IOException
 
final void addKeys (List components) throws IOException
 
final void addAbsoluteAxes (List components) throws IOException
 
final void addRelativeAxes (List components) throws IOException
 
final List getDeviceComponents () throws IOException
 
final byte[] getForceFeedbackBits () throws IOException
 
final byte[] getKeysBits () throws IOException
 
final byte[] getAbsoluteAxesBits () throws IOException
 
final byte[] getRelativeAxesBits () throws IOException
 
final byte[] getEventTypeBits () throws IOException
 
final byte[] getDeviceUsageBits () throws IOException
 
final String getDeviceName () throws IOException
 
final void checkClosed () throws IOException
 

Static Private Member Functions

static final native long nOpen (String filename, boolean rw) throws IOException
 
static final int countComponents (List components, Class id_type, boolean relative)
 
static final native int nUploadRumbleEffect (long fd, int id, int direction, int trigger_button, int trigger_interval, int replay_length, int replay_delay, int strong_magnitude, int weak_magnitude) throws IOException
 
static final native int nUploadConstantEffect (long fd, int id, int direction, int trigger_button, int trigger_interval, int replay_length, int replay_delay, int constant_level, int constant_env_attack_length, int constant_env_attack_level, int constant_env_fade_length, int constant_env_fade_level) throws IOException
 
static final native void nEraseEffect (long fd, int ff_id) throws IOException
 
static final native void nWriteEvent (long fd, int type, int code, int value) throws IOException
 
static final native LinuxInputID nGetInputID (long fd) throws IOException
 
static final native int nGetNumEffects (long fd) throws IOException
 
static final native int nGetVersion (long fd) throws IOException
 
static final native boolean nGetNextEvent (long fd, LinuxEvent linux_event) throws IOException
 
static final native void nGetAbsInfo (long fd, int abs_axis, LinuxAbsInfo abs_info) throws IOException
 
static final native void nGetBits (long fd, int ev_type, byte[] evtype_bits) throws IOException
 
static final native void nGetDeviceUsageBits (long fd, byte[] type_bits) throws IOException
 
static final native void nGetKeyStates (long fd, byte[] states) throws IOException
 
static final native String nGetName (long fd) throws IOException
 
static final native void nClose (long fd) throws IOException
 

Private Attributes

final Map component_map = new HashMap()
 
final Rumbler[] rumblers
 
final long fd
 
final String name
 
final LinuxInputID input_id
 
final List components
 
final Controller.Type type
 
boolean closed
 
final byte[] key_states = new byte[NativeDefinitions.KEY_MAX/8 + 1]
 

Detailed Description

Author
elias