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)
Basically the actual constructor.
|
ToolEvent |
mapRawDevice(String rawDeviceName,
InputSlot inputDevice) |
void |
poll(long when)
Perform polling for the device in this method.
|
void |
setEventQueue(ToolEventQueue queue)
Here the ToolEventQueue that has a thread running is attached to the device.
|
public void initialize(Viewer viewer, Map<String,Object> config)
RawDeviceinitialize in interface RawDevicepublic ToolEvent mapRawDevice(String rawDeviceName, InputSlot inputDevice)
mapRawDevice in interface RawDevicepublic void setEventQueue(ToolEventQueue queue)
RawDevicesetEventQueue in interface RawDevicepublic void poll(long when)
PollingDevicepoll in interface PollingDevice