Neonode zForce(TM) SDK
Classes | Functions
SensorDevice.h File Reference

Handles requests to the SensorDevice, a meta device. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SensorDevice
 Struct representing a SensorDevice, a meta device. More...
 

Functions

DLLINTERNAL SensorDeviceSensorDevice_New (Connection *connection, DeviceType deviceType, uint32_t deviceIndex, size_t size)
 Internal call used to create a new SensorDevice. More...
 

Detailed Description

Handles requests to the SensorDevice, a meta device.

SensorDevice is a meta device as it is not a real device and cannot be instantiated by itself. It contains everything that is shared between all the touch Sensor types, currently CoreDevice, AirDevice and PlusDevice.

Function Documentation

DLLINTERNAL SensorDevice* SensorDevice_New ( Connection connection,
DeviceType  deviceType,
uint32_t  deviceIndex,
size_t  size 
)

Internal call used to create a new SensorDevice.

On failure, errno is set.

Parameters
connectionThe Connection the Device is associated with.
deviceTypeWhich DeviceType to create.
deviceIndexWhich Device Index to set.
sizeIf this is used as a base class for another class, set size to non-zero.
Returns
A pointer to the new Device.