Windows: Check Pointer messages in MessageDebugEntry
Some Pointer Input messages are defined only for Windows 10 and new versions of the Windows SDK and could break compilation with older SDKs. Currently, they are not used anywhere outside of the MessageDebugEntry debug function. Checking if they are defined before using. Change-Id: I5fc7bb8e52ab8aca66bb21084289ab8938938063 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
parent
7bd79b3cff
commit
4c4a5f8c86
@ -202,11 +202,15 @@ messageDebugEntries[] = {
|
|||||||
{WM_TOUCHHITTESTING, "WM_TOUCHHITTESTING", true},
|
{WM_TOUCHHITTESTING, "WM_TOUCHHITTESTING", true},
|
||||||
{WM_POINTERWHEEL, "WM_POINTERWHEEL", true},
|
{WM_POINTERWHEEL, "WM_POINTERWHEEL", true},
|
||||||
{WM_POINTERHWHEEL, "WM_POINTERHWHEEL", true},
|
{WM_POINTERHWHEEL, "WM_POINTERHWHEEL", true},
|
||||||
|
#endif // WM_POINTERUPDATE
|
||||||
|
#ifdef DM_POINTERHITTEST
|
||||||
{DM_POINTERHITTEST, "DM_POINTERHITTEST", true},
|
{DM_POINTERHITTEST, "DM_POINTERHITTEST", true},
|
||||||
|
#endif // DM_POINTERHITTEST
|
||||||
|
#ifdef WM_POINTERROUTEDTO
|
||||||
{WM_POINTERROUTEDTO, "WM_POINTERROUTEDTO", true},
|
{WM_POINTERROUTEDTO, "WM_POINTERROUTEDTO", true},
|
||||||
{WM_POINTERROUTEDAWAY, "WM_POINTERROUTEDAWAY", true},
|
{WM_POINTERROUTEDAWAY, "WM_POINTERROUTEDAWAY", true},
|
||||||
{WM_POINTERROUTEDRELEASED, "WM_POINTERROUTEDRELEASED", true}
|
{WM_POINTERROUTEDRELEASED, "WM_POINTERROUTEDRELEASED", true},
|
||||||
#endif // WM_POINTERUPDATE
|
#endif // WM_POINTERROUTEDTO
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline const MessageDebugEntry *messageDebugEntry(UINT msg)
|
static inline const MessageDebugEntry *messageDebugEntry(UINT msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user