de.jreality.toolsystem.raw
Class DeviceMacbookSuddenMotionSensor

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

public class DeviceMacbookSuddenMotionSensor
extends java.lang.Object
implements RawDevice, PollingDevice


Constructor Summary
DeviceMacbookSuddenMotionSensor()
           
 
Method Summary
 void dispose()
           
 java.lang.String getName()
           
 void initialize(Viewer viewer, java.util.Map<java.lang.String,java.lang.Object> config)
           
 ToolEvent mapRawDevice(java.lang.String rawDeviceName, InputSlot inputDevice)
           
 void poll(long when)
          Perform polling for the device in this method.
 void setEventQueue(ToolEventQueue queue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceMacbookSuddenMotionSensor

public DeviceMacbookSuddenMotionSensor()
Method Detail

dispose

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

getName

public java.lang.String getName()
Specified by:
getName in interface RawDevice

initialize

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

mapRawDevice

public ToolEvent mapRawDevice(java.lang.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

poll

public void poll(long when)
Description copied from interface: PollingDevice
Perform polling for the device in this method.

Specified by:
poll in interface PollingDevice