Neonode zForce(TM) SDK
TouchMessage.h
Go to the documentation of this file.
1 
8 #ifndef MESSAGE_TOUCHMESSAGE_TOUCHMESSAGE_H
9 #define MESSAGE_TOUCHMESSAGE_TOUCHMESSAGE_H 1
10 
11 #ifndef ZFORCECOMMON_H
12  #error Please include "zForceCommon.h" before this file.
13 #endif // ZFORCECOMMON_H
14 
21 {
39  bool Error;
45  int ErrorCode;
51  uint64_t SerialNumber;
57  void ( * Destructor)(Message * self);
58  uint32_t Id;
60  uint32_t X;
61  bool HasX;
62  uint32_t Y;
63  bool HasY;
64  uint32_t Z;
65  bool HasZ;
66  uint32_t SizeX;
67  bool HasSizeX;
68  uint32_t SizeY;
69  bool HasSizeY;
70  uint32_t SizeZ;
71  bool HasSizeZ;
74  uint32_t Confidence;
76  uint32_t Pressure;
77  bool HasPressure;
78  uint64_t Timestamp;
79  bool HasTimestamp;
80 };
81 
82 #ifdef __cplusplus
83 extern "C"
84 {
85 #endif // __cplusplus
86 
103 DLLINTERNAL TouchMessage * TouchMessage_New (MessageGroup messageGroup, uint32_t size);
104 
105 #ifdef __cplusplus
106 }
107 #endif // __cplusplus
108 
109 #endif // MESSAGE_TOUCHMESSAGE_TOUCHMESSAGE_H
110 
DLLINTERNAL TouchMessage * TouchMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for TouchMessage.
The main Message struct.
Definition: Message.h:21
This structure represents a touch message.
Definition: TouchMessage.h:21
bool HasOrientation
True when Orientation is valid.
Definition: TouchMessage.h:73
bool Error
Definition: TouchMessage.h:39
bool HasSizeZ
True when SizeZ is valid.
Definition: TouchMessage.h:71
int ErrorCode
Definition: TouchMessage.h:45
uint32_t X
X axis value.
Definition: TouchMessage.h:60
bool HasSizeY
True when SizeY is valid.
Definition: TouchMessage.h:69
void(* Destructor)(Message *self)
Definition: TouchMessage.h:57
MessageType MessageType
Definition: TouchMessage.h:27
MessageGroup MessageGroup
Definition: TouchMessage.h:33
uint64_t Timestamp
Message timestamp.
Definition: TouchMessage.h:78
uint32_t Y
Y axis value.
Definition: TouchMessage.h:62
uint32_t SizeZ
Size of the object on the Z axis.
Definition: TouchMessage.h:70
uint32_t Id
Id of the Touch.
Definition: TouchMessage.h:58
uint32_t SizeY
Size of the object on the Y axis.
Definition: TouchMessage.h:68
TouchEvent Event
Event of the Touch.
Definition: TouchMessage.h:59
bool HasY
True when Y is valid.
Definition: TouchMessage.h:63
uint32_t Confidence
Detection confidence.
Definition: TouchMessage.h:74
bool HasTimestamp
True when Timestamp is valid.
Definition: TouchMessage.h:79
bool HasX
True when X is valid.
Definition: TouchMessage.h:61
uint32_t SizeX
Size of the object on the X axis.
Definition: TouchMessage.h:66
bool HasZ
True when Z is valid.
Definition: TouchMessage.h:65
bool HasConfidence
True when Confidence is valid.
Definition: TouchMessage.h:75
uint64_t SerialNumber
Definition: TouchMessage.h:51
uint32_t Z
Z axis value.
Definition: TouchMessage.h:64
TouchOrientation Orientation
Orientation of the object.
Definition: TouchMessage.h:72
bool HasPressure
True when Pressure is valid.
Definition: TouchMessage.h:77
uint32_t Pressure
Pressure of the object.
Definition: TouchMessage.h:76
bool HasSizeX
True when SizeX is valid.
Definition: TouchMessage.h:67
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:134
MessageType
Enum describing the different message types that exists.
Definition: zForceTypes.h:104
TouchEvent
Enum describing what state a touch can be in.
Definition: zForceTypes.h:170
TouchOrientation
Enum describing what orientation touches are generated in.
Definition: zForceTypes.h:182