Neonode zForce(TM) SDK

TouchModeMessage.h
Go to the documentation of this file.
1
8 #ifndef MESSAGE_TOUCHMODEMESSAGE_TOUCHMODEMESSAGE_H
9 #define MESSAGE_TOUCHMODEMESSAGE_TOUCHMODEMESSAGE_H 1
10
11 #ifndef ZFORCECOMMON_H
12 #error Please include "zForceCommon.h" before this file.
13 #endif // ZFORCECOMMON_H
14
20 struct TouchModeMessage
21 {
27 MessageType MessageType;
33 MessageGroup MessageGroup;
39 bool Error;
45 int ErrorCode;
51 uint64_t SerialNumber;
57 void ( * Destructor)(Message * self);
58 TouchModes TouchMode;
59 bool HasTouchMode;
60 uint32_t ClickOnTouchTime;
61 bool HasClickOnTouchTime;
62 uint32_t ClickOnTouchRadius;
63 bool HasClickOnTouchRadius;
64 };
65
66 #ifdef __cplusplus
67 extern "C"
68 {
69 #endif // __cplusplus
70
86 DLLINTERNAL TouchModeMessage * TouchModeMessage_New (MessageGroup messageGroup, uint32_t size);
87
88 #ifdef __cplusplus
89 }
90 #endif // __cplusplus
91
92 #endif // MESSAGE_TOUCHMODEMESSAGE_TOUCHMODEMESSAGE_H
TouchModeMessage_New
DLLINTERNAL TouchModeMessage * TouchModeMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for TouchModeMessage.
Message
The main Message struct.
Definition: Message.h:21
TouchModeMessage
This structure represents a touch mode message.
Definition: TouchModeMessage.h:21
TouchModeMessage::HasTouchMode
bool HasTouchMode
True when TouchMode is valid.
Definition: TouchModeMessage.h:59
TouchModeMessage::Error
bool Error
Definition: TouchModeMessage.h:39
TouchModeMessage::SerialNumber
uint64_t SerialNumber
Definition: TouchModeMessage.h:51
TouchModeMessage::ClickOnTouchRadius
uint32_t ClickOnTouchRadius
How far the touch has to move before it is switched to Normal Mode.
Definition: TouchModeMessage.h:62
TouchModeMessage::ClickOnTouchTime
uint32_t ClickOnTouchTime
How long to wait for before a touch is clicked in Click on Touch Mode.
Definition: TouchModeMessage.h:60
TouchModeMessage::MessageGroup
MessageGroup MessageGroup
Definition: TouchModeMessage.h:33
TouchModeMessage::Destructor
void(* Destructor)(Message *self)
Definition: TouchModeMessage.h:57
TouchModeMessage::TouchMode
TouchModes TouchMode
Touch Mode.
Definition: TouchModeMessage.h:58
TouchModeMessage::HasClickOnTouchTime
bool HasClickOnTouchTime
True when ClickOnTouchTime is valid.
Definition: TouchModeMessage.h:61
TouchModeMessage::HasClickOnTouchRadius
bool HasClickOnTouchRadius
True when ClickOnTouchRadius is valid.
Definition: TouchModeMessage.h:63
TouchModeMessage::ErrorCode
int ErrorCode
Definition: TouchModeMessage.h:45
TouchModeMessage::MessageType
MessageType MessageType
Definition: TouchModeMessage.h:27
MessageGroup
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:134
TouchModes
TouchModes
Enum describing what touch mode a device can be in.
Definition: zForceTypes.h:191
MessageType
MessageType
Enum describing the different message types that exists.
Definition: zForceTypes.h:104