Event lines are accumulated in a buffer until an event "EV_SYN EV_SYN_REPORT 0" is received. At this point the listener is notified. The listener can then use the methods getEventType(), getEventCode() and getEventValue() to obtain the details of the current event line to process. nextEvent() and hasNextEvent() are used to iterate over pending events.
To save on RAM and GC, event lines are not objects.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | LinuxInputDevice.
The EventProcessor is used to notify listeners of pending events. |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private final LinuxEventBuffer | |
| private Map | |
| private File | |
| private final ByteBuffer | |
| private long | |
| private ReadableByteChannel | |
| private LinuxInputProcessor | |
| private LinuxInputDevice. | |
| private RunnableProcessor | |
| private File | |
| private static LinuxSystem | |
| private Map | |
| private Map |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | LinuxInputDevice(Map<String, BitSet>
Simulated capabilities capabilities, Map<Integer, LinuxAbsoluteInputCapabilities> Simulated absolute axis capabilities absCaps, ReadableByteChannel Channel f or simulated input events in, Map<String, String> udevManifest, Map<String, String> Simulated uevent data uevent)Create a new simulated LinuxInputDevice |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv LinuxAbsoluteInputCapabilities | |
| pack-priv LinuxEventBuffer | |
| pack-priv BitSet | |
| pack-priv String | |
| public boolean | |
| public boolean | |
| public boolean | |
| pack-priv boolean | |
| public boolean | |
| public boolean | |
| private boolean | |
| private void | |
| public void | |
| pack-priv void | |
| public String | Returns: a string describing this input deviceOverrides java. Returns a string representation of the object. |
| absCaps | back to summary |
|---|---|
| private Map<Integer, LinuxAbsoluteInputCapabilities> absCaps | |
| buffer | back to summary |
|---|---|
| private final LinuxEventBuffer buffer | |
| capabilities | back to summary |
|---|---|
| private Map<String, BitSet> capabilities | |
| devNode | back to summary |
|---|---|
| private File devNode | |
| event | back to summary |
|---|---|
| private final ByteBuffer event | |
| fd | back to summary |
|---|---|
| private long fd | |
| in | back to summary |
|---|---|
| private ReadableByteChannel in | |
| inputProcessor | back to summary |
|---|---|
| private LinuxInputProcessor inputProcessor | |
| processor | back to summary |
|---|---|
| private LinuxInputDevice. | |
| runnableProcessor | back to summary |
|---|---|
| private RunnableProcessor runnableProcessor | |
| sysPath | back to summary |
|---|---|
| private File sysPath | |
| system | back to summary |
|---|---|
| private static LinuxSystem system | |
| udevManifest | back to summary |
|---|---|
| private Map<String, String> udevManifest | |
| uevent | back to summary |
|---|---|
| private Map<String, String> uevent | |
| LinuxInputDevice | back to summary |
|---|---|
| pack-priv LinuxInputDevice(File devNode, File sysPath, Map<String, String> udevManifest) throws IOException Create a new com.sun.glass.ui.monocle.input.LinuxInputDevice on the given input node. | |
| LinuxInputDevice | back to summary |
|---|---|
| pack-priv LinuxInputDevice(Map<String, BitSet> capabilities, Map<Integer, LinuxAbsoluteInputCapabilities> absCaps, ReadableByteChannel in, Map<String, String> udevManifest, Map<String, String> uevent) Create a new simulated LinuxInputDevice
| |
| getAbsoluteInputCapabilities | back to summary |
|---|---|
| pack-priv LinuxAbsoluteInputCapabilities getAbsoluteInputCapabilities(int axis) | |
| getBuffer | back to summary |
|---|---|
| pack-priv LinuxEventBuffer getBuffer() | |
| getCapability | back to summary |
|---|---|
| pack-priv BitSet getCapability(String type) | |
| getProduct | back to summary |
|---|---|
| pack-priv String getProduct() | |
| is5Way | back to summary |
|---|---|
| public boolean is5Way() Implements com.
| |
| isFullKeyboard | back to summary |
|---|---|
| public boolean isFullKeyboard() Implements com.
| |
| isMultiTouch | back to summary |
|---|---|
| public boolean isMultiTouch() Implements com.
| |
| isQuiet | back to summary |
|---|---|
| pack-priv boolean isQuiet() Asks whether the device is quiet. "Quiet" means that the event reader is blocked waiting for events, the buffer is empty and the event processor is not scheduled. Called on the application thread. | |
| isRelative | back to summary |
|---|---|
| public boolean isRelative() Implements com.
| |
| isTouch | back to summary |
|---|---|
| public boolean isTouch() Implements com.
| |
| isTouchDeclaredAsMouse | back to summary |
|---|---|
| private boolean isTouchDeclaredAsMouse() | |
| readToEventBuffer | back to summary |
|---|---|
| private void readToEventBuffer() throws IOException | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| setInputProcessor | back to summary |
|---|---|
| pack-priv void setInputProcessor(LinuxInputProcessor inputProcessor) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| scheduled | back to summary |
|---|---|
| pack-priv boolean scheduled | |
| EventProcessor | back to summary |
|---|---|
| pack-priv EventProcessor() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |