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

public Class LinuxMouseTracker

extends Object
implements WindowListener, MouseTracker
Class Inheritance
All Implemented Interfaces
jogamp.newt.driver.MouseTracker, com.jogamp.newt.event.WindowListener, com.jogamp.newt.event.NEWTEventListener, java.util.EventListener
Imports
java.io.File, .FileInputStream, .FileNotFoundException, .IOException, .InputStream, jogamp.newt.WindowImpl, jogamp.newt.driver.MouseTracker, com.jogamp.common.util.InterruptSource, com.jogamp.newt.Screen, .Window, com.jogamp.newt.event.MouseEvent, .WindowEvent, .WindowListener, .WindowUpdateEvent

Experimental native mouse tracker thread for GNU/Linux just reading /dev/input/mice within it's own polling thread.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
private short
private WindowImpl
private volatile int
private volatile int
private static final LinuxMouseTracker
private final LinuxMouseTracker.MouseDevicePoller
private short
private int
private int
private volatile boolean
private int
x

private int
y

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final int
public final int
public static LinuxMouseTracker
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

buttonDownback to summary
private short buttonDown
focusedWindowback to summary
private WindowImpl focusedWindow
lastFocusedXback to summary
private volatile int lastFocusedX
lastFocusedYback to summary
private volatile int lastFocusedY
lmtback to summary
private static final LinuxMouseTracker lmt
mouseDevicePollerback to summary
private final LinuxMouseTracker.MouseDevicePoller mouseDevicePoller
old_buttonDownback to summary
private short old_buttonDown
old_xback to summary
private int old_x
old_yback to summary
private int old_y
stopback to summary
private volatile boolean stop
xback to summary
private int x
yback to summary
private int y

Constructor Detail

LinuxMouseTrackerback to summary
public LinuxMouseTracker()

Method Detail

getLastXback to summary
public final int getLastX()

Implements jogamp.newt.driver.MouseTracker.getLastX.

getLastYback to summary
public final int getLastY()

Implements jogamp.newt.driver.MouseTracker.getLastY.

getSingletonback to summary
public static LinuxMouseTracker getSingleton()
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 LinuxMouseTracker.MouseDevicePoller

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

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

Constructor Detail

MouseDevicePollerback to summary
pack-priv MouseDevicePoller()

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override