Neonode zForce(TM) SDK

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

TouchMessage.h
Go to the documentation of this file.
1
9 #if !defined(MESSAGE_TOUCHMESSAGE_TOUCHMESSAGE_H) && !defined(CONTAINS_TOUCHMESSAGE)
10
11 #ifndef ZFORCECOMMON_H
12 #error Please include "zForceCommon.h" before this file.
13 #endif // ZFORCECOMMON_H
14
20 struct TouchMessage
21 {
22 #endif // !defined(MESSAGE_TOUCHMESSAGE_TOUCHMESSAGE_H) && !defined(CONTAINS_TOUCHMESSAGE)
23 #if !defined(MESSAGE_TOUCHMESSAGE_TOUCHMESSAGE_H) || defined(CONTAINS_TOUCHMESSAGE)
24 #define CONTAINS_MESSAGE
25 #include <Message.h>
26 #undef CONTAINS_MESSAGE
27 uint32_t Id;
28 TouchEvent Event;
29 #define CONTAINS_CARTESIANCOORDINATES
30 #include <zForceTypes.h>
31 #undef CONTAINS_CARTESIANCOORDINATES
32 uint32_t SizeX;
33 bool HasSizeX;
34 uint32_t SizeY;
35 bool HasSizeY;
36 uint32_t SizeZ;
37 bool HasSizeZ;
38 TouchOrientation Orientation;
39 bool HasOrientation;
40 uint32_t Confidence;
41 bool HasConfidence;
42 uint32_t Pressure;
43 bool HasPressure;
44 uint64_t Timestamp;
45 bool HasTimestamp;
46 #endif // !defined(MESSAGE_TOUCHMESSAGE_TOUCHMESSAGE_H) || defined(CONTAINS_TOUCHMESSAGE)
47 #if !defined(MESSAGE_TOUCHMESSAGE_TOUCHMESSAGE_H) && !defined(CONTAINS_TOUCHMESSAGE)
48 };
49
50 #ifdef __cplusplus
51 extern "C"
52 {
53 #endif // __cplusplus
54
70 DLLINTERNAL TouchMessage * TouchMessage_New (MessageGroup messageGroup, uint32_t size);
71
72 #ifdef __cplusplus
73 }
74 #endif // __cplusplus
75
76 #define MESSAGE_TOUCHMESSAGE_TOUCHMESSAGE_H
77 #endif
78
Message.h
Base class for all Messages.
TouchOrientation
TouchOrientation
Enum describing what orientation touches are generated in.
Definition: zForceTypes.h:176
MessageGroup
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:128
TouchEvent
TouchEvent
Enum describing what state a touch can be in.
Definition: zForceTypes.h:164
TouchMessage
struct TouchMessage TouchMessage
Definition: zForceTypes.h:57
zForceTypes.h