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 
21 {
39  bool Error;
45  int ErrorCode;
51  uint64_t SerialNumber;
57  void ( * Destructor)(Message * self);
59  bool HasTouchMode;
60  uint32_t ClickOnTouchTime;
62  uint32_t ClickOnTouchRadius;
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
DLLINTERNAL TouchModeMessage * TouchModeMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for TouchModeMessage.
The main Message struct.
Definition: Message.h:21
This structure represents a touch mode message.
Definition: TouchModeMessage.h:21
bool HasTouchMode
True when TouchMode is valid.
Definition: TouchModeMessage.h:59
bool Error
Definition: TouchModeMessage.h:39
uint64_t SerialNumber
Definition: TouchModeMessage.h:51
uint32_t ClickOnTouchRadius
How far the touch has to move before it is switched to Normal Mode.
Definition: TouchModeMessage.h:62
uint32_t ClickOnTouchTime
How long to wait for before a touch is clicked in Click on Touch Mode.
Definition: TouchModeMessage.h:60
MessageGroup MessageGroup
Definition: TouchModeMessage.h:33
void(* Destructor)(Message *self)
Definition: TouchModeMessage.h:57
TouchModes TouchMode
Touch Mode.
Definition: TouchModeMessage.h:58
bool HasClickOnTouchTime
True when ClickOnTouchTime is valid.
Definition: TouchModeMessage.h:61
bool HasClickOnTouchRadius
True when ClickOnTouchRadius is valid.
Definition: TouchModeMessage.h:63
int ErrorCode
Definition: TouchModeMessage.h:45
MessageType MessageType
Definition: TouchModeMessage.h:27
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:134
TouchModes
Enum describing what touch mode a device can be in.
Definition: zForceTypes.h:191
MessageType
Enum describing the different message types that exists.
Definition: zForceTypes.h:104