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
20 struct TouchMessage
21 {
27 MessageType MessageType;
33 MessageGroup MessageGroup;
39 bool Error;
45 int ErrorCode;
51 uint64_t SerialNumber;
57 void ( * Destructor)(Message * self);
58 uint32_t Id;
59 TouchEvent Event;
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;
72 TouchOrientation Orientation;
73 bool HasOrientation;
74 uint32_t Confidence;
75 bool HasConfidence;
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
TouchMessage_New
DLLINTERNAL TouchMessage * TouchMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for TouchMessage.
Message
The main Message struct.
Definition: Message.h:21
TouchMessage
This structure represents a touch message.
Definition: TouchMessage.h:21
TouchMessage::HasOrientation
bool HasOrientation
True when Orientation is valid.
Definition: TouchMessage.h:73
TouchMessage::Error
bool Error
Definition: TouchMessage.h:39
TouchMessage::HasSizeZ
bool HasSizeZ
True when SizeZ is valid.
Definition: TouchMessage.h:71
TouchMessage::ErrorCode
int ErrorCode
Definition: TouchMessage.h:45
TouchMessage::X
uint32_t X
X axis value.
Definition: TouchMessage.h:60
TouchMessage::HasSizeY
bool HasSizeY
True when SizeY is valid.
Definition: TouchMessage.h:69
TouchMessage::Destructor
void(* Destructor)(Message *self)
Definition: TouchMessage.h:57
TouchMessage::MessageType
MessageType MessageType
Definition: TouchMessage.h:27
TouchMessage::MessageGroup
MessageGroup MessageGroup
Definition: TouchMessage.h:33
TouchMessage::Timestamp
uint64_t Timestamp
Message timestamp.
Definition: TouchMessage.h:78
TouchMessage::Y
uint32_t Y
Y axis value.
Definition: TouchMessage.h:62
TouchMessage::SizeZ
uint32_t SizeZ
Size of the object on the Z axis.
Definition: TouchMessage.h:70
TouchMessage::Id
uint32_t Id
Id of the Touch.
Definition: TouchMessage.h:58
TouchMessage::SizeY
uint32_t SizeY
Size of the object on the Y axis.
Definition: TouchMessage.h:68
TouchMessage::Event
TouchEvent Event
Event of the Touch.
Definition: TouchMessage.h:59
TouchMessage::HasY
bool HasY
True when Y is valid.
Definition: TouchMessage.h:63
TouchMessage::Confidence
uint32_t Confidence
Detection confidence.
Definition: TouchMessage.h:74
TouchMessage::HasTimestamp
bool HasTimestamp
True when Timestamp is valid.
Definition: TouchMessage.h:79
TouchMessage::HasX
bool HasX
True when X is valid.
Definition: TouchMessage.h:61
TouchMessage::SizeX
uint32_t SizeX
Size of the object on the X axis.
Definition: TouchMessage.h:66
TouchMessage::HasZ
bool HasZ
True when Z is valid.
Definition: TouchMessage.h:65
TouchMessage::HasConfidence
bool HasConfidence
True when Confidence is valid.
Definition: TouchMessage.h:75
TouchMessage::SerialNumber
uint64_t SerialNumber
Definition: TouchMessage.h:51
TouchMessage::Z
uint32_t Z
Z axis value.
Definition: TouchMessage.h:64
TouchMessage::Orientation
TouchOrientation Orientation
Orientation of the object.
Definition: TouchMessage.h:72
TouchMessage::HasPressure
bool HasPressure
True when Pressure is valid.
Definition: TouchMessage.h:77
TouchMessage::Pressure
uint32_t Pressure
Pressure of the object.
Definition: TouchMessage.h:76
TouchMessage::HasSizeX
bool HasSizeX
True when SizeX is valid.
Definition: TouchMessage.h:67
MessageGroup
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:134
MessageType
MessageType
Enum describing the different message types that exists.
Definition: zForceTypes.h:104
TouchEvent
TouchEvent
Enum describing what state a touch can be in.
Definition: zForceTypes.h:170
TouchOrientation
TouchOrientation
Enum describing what orientation touches are generated in.
Definition: zForceTypes.h:182