public class DeviceMacbookSuddenMotionSensor extends Object implements RawDevice, PollingDevice
Constructor and Description |
---|
DeviceMacbookSuddenMotionSensor() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
String |
getName() |
void |
initialize(Viewer viewer,
Map<String,Object> config) |
ToolEvent |
mapRawDevice(String rawDeviceName,
InputSlot inputDevice) |
void |
poll(long when)
Perform polling for the device in this method.
|
void |
setEventQueue(ToolEventQueue queue) |
public void initialize(Viewer viewer, Map<String,Object> config)
initialize
in interface RawDevice
public ToolEvent mapRawDevice(String rawDeviceName, InputSlot inputDevice)
mapRawDevice
in interface RawDevice
public void setEventQueue(ToolEventQueue queue)
setEventQueue
in interface RawDevice
public void poll(long when)
PollingDevice
poll
in interface PollingDevice