Neonode zForce(TM) SDK
TouchMessage.h
Go to the documentation of this file.
1 
9 #ifndef MESSAGE_TOUCHMESSAGE_TOUCHMESSAGE_H
10 #define MESSAGE_TOUCHMESSAGE_TOUCHMESSAGE_H
11 
12 #ifndef ZFORCECOMMON_H
13  #error Please include "zForceCommon.h" before this file.
14 #endif // ZFORCECOMMON_H
15 
22 {
24  uint32_t Id;
27  uint32_t SizeX;
28  bool HasSizeX;
29  uint32_t SizeY;
30  bool HasSizeY;
31  uint32_t SizeZ;
32  bool HasSizeZ;
35  uint32_t Confidence;
37  uint32_t Pressure;
38  bool HasPressure;
39  uint64_t Timestamp;
40  bool HasTimestamp;
41 };
42 
58 DLLINTERNAL TouchMessage * TouchMessage_New (MessageGroup messageGroup,
59  uint32_t size);
60 
61 #endif // MESSAGE_TOUCHMESSAGE_TOUCHMESSAGE_H
62 
TouchOrientation Orientation
Orientation of the object.
Definition: TouchMessage.h:33
bool HasSizeZ
Is the size reported for Z?
Definition: TouchMessage.h:32
bool HasTimestamp
Is Timestamp reported?
Definition: TouchMessage.h:40
uint32_t Pressure
Pressure of the object.
Definition: TouchMessage.h:37
uint32_t Confidence
Detection confidence.
Definition: TouchMessage.h:35
bool HasSizeX
Is the size reported for X?
Definition: TouchMessage.h:28
bool HasOrientation
Is Orientation reported?
Definition: TouchMessage.h:34
DLLINTERNAL TouchMessage * TouchMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for TouchMessage.
This structure represents a touch message.
Definition: TouchMessage.h:21
bool HasConfidence
Is Confidence reported?
Definition: TouchMessage.h:36
bool HasSizeY
Is the size reported for Y?
Definition: TouchMessage.h:30
TouchOrientation
Enum describing what orientation touches are generated in.
Definition: zForceTypes.h:160
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:113
TouchEvent
Enum describing what state a touch can be in.
Definition: zForceTypes.h:148
uint32_t SizeY
Size of the object on the Y axis.
Definition: TouchMessage.h:29
bool HasPressure
Is Pressure reported?
Definition: TouchMessage.h:38
TouchEvent Event
Event of the Touch.
Definition: TouchMessage.h:25
uint32_t SizeZ
Size of the object on the Z axis.
Definition: TouchMessage.h:31
Message
Base Message.
Definition: TouchMessage.h:23
uint32_t SizeX
Size of the object on the X axis.
Definition: TouchMessage.h:27
CartesianCoordinates
X, Y, Z coordinates.
Definition: TouchMessage.h:26
uint64_t Timestamp
Message timestamp.
Definition: TouchMessage.h:39
uint32_t Id
Id of the Touch.
Definition: TouchMessage.h:24