Logo Search packages:      
Sourcecode: jinput version File versions  Download package

net::java::games::input::LinuxEventDevice Class Reference

Inheritance diagram for net::java::games::input::LinuxEventDevice:

net::java::games::input::LinuxDevice

List of all members.


Detailed Description

Author:
elias

Definition at line 37 of file LinuxEventDevice.java.


Public Member Functions

synchronized final void close () throws IOException
final synchronized void getAbsInfo (int abs_axis, LinuxAbsInfo abs_info) throws IOException
final List getComponents ()
final LinuxInputID getInputID ()
final String getName ()
final synchronized boolean getNextEvent (LinuxEvent linux_event) throws IOException
final int getNumEffects () throws IOException
final Controller.PortType getPortType () throws IOException
final Rumbler[] getRumblers ()
final Controller.Type getType ()
final boolean isKeySet (int bit)
 LinuxEventDevice (String filename) throws IOException
final LinuxComponent mapDescriptor (LinuxAxisDescriptor desc)
final synchronized void pollKeyStates () throws IOException
final void registerComponent (LinuxAxisDescriptor desc, LinuxComponent component)
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 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 void writeEvent (int type, int code, int value) 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 void addAbsoluteAxes (List components) throws IOException
final void addKeys (List components) throws IOException
final void addRelativeAxes (List components) throws IOException
final void checkClosed () throws IOException
final Rumbler[] enumerateRumblers ()
final byte[] getAbsoluteAxesBits () throws IOException
final List getDeviceComponents () throws IOException
final LinuxInputID getDeviceInputID () throws IOException
final String getDeviceName () throws IOException
final byte[] getDeviceUsageBits () throws IOException
final byte[] getEventTypeBits () throws IOException
final byte[] getForceFeedbackBits () throws IOException
final byte[] getKeysBits () throws IOException
final byte[] getRelativeAxesBits () throws IOException
final int getVersion () throws IOException
final Controller.Type guessType () throws IOException
final Controller.Type guessTypeFromComponents () throws IOException
final Controller.Type guessTypeFromUsages () throws IOException

Static Private Member Functions

static final int countComponents (List components, Class id_type, boolean relative)
static final native void nClose (long fd) throws IOException
static final native void nEraseEffect (long fd, int ff_id) 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 LinuxInputID nGetInputID (long fd) 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 boolean nGetNextEvent (long fd, LinuxEvent linux_event) throws IOException
static final native int nGetNumEffects (long fd) throws IOException
static final native int nGetVersion (long fd) throws IOException
static final native long nOpen (String filename, boolean rw) 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 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 void nWriteEvent (long fd, int type, int code, int value) throws IOException

Private Attributes

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

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index