net.sf.spacenav
Class SpaceNav

java.lang.Object
  extended by net.sf.spacenav.SpaceNav

public class SpaceNav
extends java.lang.Object

This class provides an interface to the free spacenavd for 3D input devices from 3DConnection (TM), see http://spacenav.sourceforge.net/


Constructor Summary
SpaceNav()
          Default constructor, opens the SpaceNav device The connection should be closed with closeDevice() if no longer needed.
 
Method Summary
 void closeDevice()
          Close the connection to the SpaceNav device
 void setSensitivity(double sens)
          Set sensitivity of device, seems that the daemon multiplies all values with the supplied sensitivity
 SpaceNavEvent waitForEvent()
          Wait for an event to occur.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceNav

public SpaceNav()
Default constructor, opens the SpaceNav device The connection should be closed with closeDevice() if no longer needed.

Method Detail

closeDevice

public void closeDevice()
Close the connection to the SpaceNav device


setSensitivity

public void setSensitivity(double sens)
Set sensitivity of device, seems that the daemon multiplies all values with the supplied sensitivity

Parameters:
sens - the sensitivity

waitForEvent

public SpaceNavEvent waitForEvent()
Wait for an event to occur.

Returns:
the SpaceNavEvent that occured