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
IOExceptionpublic 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
IOExceptionpublic 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
IOExceptionfinal void eraseEffect(int id)
throws IOException
IOExceptionpublic final void writeEvent(int type,
int code,
int value)
throws IOException
IOExceptionpublic 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
IOExceptionpublic final boolean getNextEvent(LinuxEvent linux_event) throws IOException
IOExceptionpublic final void getAbsInfo(int abs_axis,
LinuxAbsInfo abs_info)
throws IOException
IOExceptionpublic final List<LinuxEventComponent> getComponents()
public final void pollKeyStates()
throws IOException
IOExceptionpublic 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 LinuxDeviceIOExceptionprotected void finalize()
throws IOException
finalize in class ObjectIOException