de.jreality.toolsystem.raw
Class DeviceSpacenav

java.lang.Object
  extended by de.jreality.toolsystem.raw.DeviceSpacenav
All Implemented Interfaces:
RawDevice, Runnable

public class DeviceSpacenav
extends Object
implements RawDevice, Runnable


Constructor Summary
DeviceSpacenav()
           
 
Method Summary
 void button(SpaceNavButtonEvent e)
           
 void dispose()
           
 String getName()
           
 void initialize(Viewer viewer, Map<String,Object> config)
           
 ToolEvent mapRawDevice(String rawDeviceName, InputSlot inputDevice)
           
 void motion(SpaceNavMotionEvent e)
           
 void run()
           
 void setEventQueue(ToolEventQueue queue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceSpacenav

public DeviceSpacenav()
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface RawDevice

getName

public String getName()
Specified by:
getName in interface RawDevice

initialize

public void initialize(Viewer viewer,
                       Map<String,Object> config)
Specified by:
initialize in interface RawDevice

mapRawDevice

public ToolEvent mapRawDevice(String rawDeviceName,
                              InputSlot inputDevice)
Specified by:
mapRawDevice in interface RawDevice
Returns:
a ToolEvent representing a reasonable initial value for the mapping - that means the source must be the given input slot!

setEventQueue

public void setEventQueue(ToolEventQueue queue)
Specified by:
setEventQueue in interface RawDevice

button

public void button(SpaceNavButtonEvent e)

motion

public void motion(SpaceNavMotionEvent e)

run

public void run()
Specified by:
run in interface Runnable