Top Description Inners Fields Constructors Methods
jogamp.newt.driver.linux

public Class LinuxEventDeviceTracker

extends Object
implements WindowListener, KeyTracker
Class Inheritance
All Implemented Interfaces
jogamp.newt.driver.KeyTracker, com.jogamp.newt.event.WindowListener, com.jogamp.newt.event.NEWTEventListener, java.util.EventListener
Imports
java.io.File, .FileInputStream, .FileNotFoundException, .IOException, .InputStream, java.lang.Integer, .Runnable, .String, .Thread, java.nio.ByteBuffer, jogamp.newt.WindowImpl, jogamp.newt.driver.KeyTracker, com.jogamp.common.nio.StructAccessor, com.jogamp.common.util.InterruptSource, com.jogamp.newt.Window, com.jogamp.newt.event.InputEvent, .WindowEvent, .WindowListener, .WindowUpdateEvent, .KeyEvent

Experimental native event device tracker thread for GNU/Linux just reading /dev/input/event* within it's own polling thread.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
pack-priv class

Field Summary

Modifier and TypeField and Description
private final LinuxEventDeviceTracker.EventDeviceManager
private final LinuxEventDeviceTracker.EventDevicePoller[]
private WindowImpl
private static final LinuxEventDeviceTracker

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static LinuxEventDeviceTracker
public static void
main(final String[] args)

public void
public void
windowDestroyNotify(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowDestroyNotify.

Window destruction has been requested.
public void
public void
public void
public void
windowRepaint(final WindowUpdateEvent e)

Implements com.jogamp.newt.event.WindowListener.windowRepaint.

Window area shall be repainted.
public void
windowResized(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowResized.

Window is resized, your application shall respect the new window dimension.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eventDeviceManagerback to summary
private final LinuxEventDeviceTracker.EventDeviceManager eventDeviceManager
eventDevicePollersback to summary
private final LinuxEventDeviceTracker.EventDevicePoller[] eventDevicePollers
focusedWindowback to summary
private WindowImpl focusedWindow
ledtback to summary
private static final LinuxEventDeviceTracker ledt

Constructor Detail

LinuxEventDeviceTrackerback to summary
public LinuxEventDeviceTracker()

Method Detail

getSingletonback to summary
public static LinuxEventDeviceTracker getSingleton()
mainback to summary
public static void main(final String[] args)
windowDestroyedback to summary
public void windowDestroyed(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowDestroyed.

Doc from com.jogamp.newt.event.WindowListener.windowDestroyed.

Window has been destroyed.

Annotations
@Override
windowDestroyNotifyback to summary
public void windowDestroyNotify(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowDestroyNotify.

Doc from com.jogamp.newt.event.WindowListener.windowDestroyNotify.

Window destruction has been requested.

Depending on the default close operation, the window maybe destroyed or not.

In case the window will be destroyed (see above), release of resources is recommended.
Annotations
@Override
windowGainedFocusback to summary
public void windowGainedFocus(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowGainedFocus.

Doc from com.jogamp.newt.event.WindowListener.windowGainedFocus.

Window gained focus.

Annotations
@Override
windowLostFocusback to summary
public void windowLostFocus(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowLostFocus.

Doc from com.jogamp.newt.event.WindowListener.windowLostFocus.

Window lost focus.

Annotations
@Override
windowMovedback to summary
public void windowMoved(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowMoved.

Doc from com.jogamp.newt.event.WindowListener.windowMoved.

Window has been moved.

Annotations
@Override
windowRepaintback to summary
public void windowRepaint(final WindowUpdateEvent e)

Implements com.jogamp.newt.event.WindowListener.windowRepaint.

Doc from com.jogamp.newt.event.WindowListener.windowRepaint.

Window area shall be repainted.

Annotations
@Override
windowResizedback to summary
public void windowResized(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowResized.

Doc from com.jogamp.newt.event.WindowListener.windowResized.

Window is resized, your application shall respect the new window dimension. A repaint is recommended.

Annotations
@Override
jogamp.newt.driver.linux back to summary

pack-priv Class LinuxEventDeviceTracker.EventDeviceManager

extends Object
implements Runnable
Class Inheritance
  • java.lang.Object
  • jogamp.newt.driver.linux.LinuxEventDeviceTracker.EventDeviceManager
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
private volatile boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

stopback to summary
private volatile boolean stop

Constructor Detail

EventDeviceManagerback to summary
pack-priv EventDeviceManager()

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override
jogamp.newt.driver.linux back to summary

pack-priv Class LinuxEventDeviceTracker.EventDevicePoller

extends Object
implements Runnable
Class Inheritance
  • java.lang.Object
  • jogamp.newt.driver.linux.LinuxEventDeviceTracker.EventDevicePoller
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
private final String
private volatile boolean

Constructor Summary

AccessConstructor and Description
public
EventDevicePoller(final int eventDeviceNumber)

Method Summary

Modifier and TypeMethod and Description
private short
LinuxEVKey2NewtVKey(final short EVKey)

private char
LinuxEVKey2Unicode(final short EVKey)

private char
NewtVKey2Unicode(final short VK, final int modifiers)

public void
run()

Implements java.lang.Runnable.run.

Runs this operation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eventDeviceNameback to summary
private final String eventDeviceName
stopback to summary
private volatile boolean stop

Constructor Detail

EventDevicePollerback to summary
public EventDevicePoller(final int eventDeviceNumber)

Method Detail

LinuxEVKey2NewtVKeyback to summary
private short LinuxEVKey2NewtVKey(final short EVKey)
LinuxEVKey2Unicodeback to summary
private char LinuxEVKey2Unicode(final short EVKey)
Annotations
@SuppressWarnings:unused
NewtVKey2Unicodeback to summary
private char NewtVKey2Unicode(final short VK, final int modifiers)
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override