net.java.games.input
Class LinuxEventDevice
java.lang.Object
net.java.games.input.LinuxEventDevice
- All Implemented Interfaces:
- LinuxDevice
final class LinuxEventDevice
- extends java.lang.Object
- implements LinuxDevice
Method Summary |
void |
close()
|
(package private) void |
eraseEffect(int id)
|
protected void |
finalize()
|
void |
getAbsInfo(int abs_axis,
LinuxAbsInfo abs_info)
|
java.util.List |
getComponents()
|
LinuxInputID |
getInputID()
|
java.lang.String |
getName()
|
boolean |
getNextEvent(LinuxEvent linux_event)
|
int |
getNumEffects()
|
Controller.PortType |
getPortType()
|
Rumbler[] |
getRumblers()
|
Controller.Type |
getType()
|
static boolean |
isBitSet(byte[] bits,
int bit)
|
boolean |
isKeySet(int bit)
|
LinuxComponent |
mapDescriptor(LinuxAxisDescriptor desc)
|
void |
pollKeyStates()
|
void |
registerComponent(LinuxAxisDescriptor desc,
LinuxComponent component)
|
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)
|
int |
uploadRumbleEffect(int id,
int trigger_button,
int direction,
int trigger_interval,
int replay_length,
int replay_delay,
int strong_magnitude,
int weak_magnitude)
|
void |
writeEvent(int type,
int code,
int value)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinuxEventDevice
public LinuxEventDevice(java.lang.String filename)
throws java.io.IOException
- Throws:
java.io.IOException
getType
public final Controller.Type getType()
getRumblers
public final Rumbler[] getRumblers()
uploadRumbleEffect
public final 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 java.io.IOException
- Throws:
java.io.IOException
uploadConstantEffect
public final 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 java.io.IOException
- Throws:
java.io.IOException
eraseEffect
final void eraseEffect(int id)
throws java.io.IOException
- Throws:
java.io.IOException
writeEvent
public final void writeEvent(int type,
int code,
int value)
throws java.io.IOException
- Throws:
java.io.IOException
registerComponent
public final void registerComponent(LinuxAxisDescriptor desc,
LinuxComponent component)
mapDescriptor
public final LinuxComponent mapDescriptor(LinuxAxisDescriptor desc)
getPortType
public final Controller.PortType getPortType()
throws java.io.IOException
- Throws:
java.io.IOException
getInputID
public final LinuxInputID getInputID()
getNumEffects
public final int getNumEffects()
throws java.io.IOException
- Throws:
java.io.IOException
getNextEvent
public final boolean getNextEvent(LinuxEvent linux_event)
throws java.io.IOException
- Throws:
java.io.IOException
getAbsInfo
public final void getAbsInfo(int abs_axis,
LinuxAbsInfo abs_info)
throws java.io.IOException
- Throws:
java.io.IOException
getComponents
public final java.util.List getComponents()
pollKeyStates
public final void pollKeyStates()
throws java.io.IOException
- Throws:
java.io.IOException
isKeySet
public final boolean isKeySet(int bit)
isBitSet
public static final boolean isBitSet(byte[] bits,
int bit)
getName
public final java.lang.String getName()
close
public final void close()
throws java.io.IOException
- Specified by:
close
in interface LinuxDevice
- Throws:
java.io.IOException
finalize
protected void finalize()
throws java.io.IOException
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.io.IOException