final class LinuxEventDevice extends Object implements LinuxDevice
Constructor and Description |
---|
LinuxEventDevice(String filename) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
(package private) void |
eraseEffect(int id) |
protected void |
finalize() |
void |
getAbsInfo(int abs_axis,
LinuxAbsInfo abs_info) |
List<LinuxEventComponent> |
getComponents() |
LinuxInputID |
getInputID() |
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) |
public LinuxEventDevice(String filename) throws IOException
IOException
public final Controller.Type getType()
public final Rumbler[] getRumblers()
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 IOException
IOException
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 IOException
IOException
final void eraseEffect(int id) throws IOException
IOException
public final void writeEvent(int type, int code, int value) throws IOException
IOException
public final void registerComponent(LinuxAxisDescriptor desc, LinuxComponent component)
public final LinuxComponent mapDescriptor(LinuxAxisDescriptor desc)
public final Controller.PortType getPortType()
public final LinuxInputID getInputID()
public final int getNumEffects() throws IOException
IOException
public final boolean getNextEvent(LinuxEvent linux_event) throws IOException
IOException
public final void getAbsInfo(int abs_axis, LinuxAbsInfo abs_info) throws IOException
IOException
public final List<LinuxEventComponent> getComponents()
public final void pollKeyStates() throws IOException
IOException
public final boolean isKeySet(int bit)
public static final boolean isBitSet(byte[] bits, int bit)
public final String getName()
public final void close() throws IOException
close
in interface LinuxDevice
IOException
protected void finalize() throws IOException
finalize
in class Object
IOException