diff options
Diffstat (limited to 'intern/ghost/intern/GHOST_SystemWin32.h')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.h | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.h b/intern/ghost/intern/GHOST_SystemWin32.h index 6a756d35872..2eb50688009 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.h +++ b/intern/ghost/intern/GHOST_SystemWin32.h @@ -37,11 +37,43 @@ #error WIN32 only! #endif // WIN32 -#define _WIN32_WINNT 0x501 // require Windows XP or newer +// Windows dependency for system touch, replace later? +#ifdef WITH_INPUT_TOUCH +# define _WIN32_WINNT 0x0601 // require Windows 7 or newer +#else +# define _WIN32_WINNT 0x501 // require Windows XP or newer +#endif #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <ole2.h> // for drag-n-drop +#ifdef WITH_INPUT_TOUCH +# ifndef SM_DIGITIZER +# define SM_DIGITIZER 94 +# endif // SM_DIGITIZER +# ifndef TABLET_CONFIG_NONE +# define TABLET_CONFIG_NONE 0x00000000 +# endif // TABLET_CONFIG_NONE +# ifndef NID_INTEGRATED_TOUCH +# define NID_INTEGRATED_TOUCH 0x00000001 +# endif // NID_INTEGRATED_TOUCH +# ifndef NID_EXTERNAL_TOUCH +# define NID_EXTERNAL_TOUCH 0x00000002 +# endif // NID_EXTERNAL_TOUCH +# ifndef NID_INTEGRATED_PEN +# define NID_INTEGRATED_PEN 0x00000004 +# endif // NID_INTEGRATED_PEN +# ifndef NID_EXTERNAL_PEN +# define NID_EXTERNAL_PEN 0x00000008 +# endif // NID_EXTERNAL_PEN +# ifndef NID_MULTI_INPUT +# define NID_MULTI_INPUT 0x00000040 +# endif // NID_MULTI_INPUT +# ifndef NID_READY +# define NID_READY 0x00000080 +# endif // NID_READY +#endif //WITH_INPUT_TOUCH + #include "GHOST_System.h" #if defined(__CYGWIN32__) @@ -318,6 +350,13 @@ protected: bool processNDOF(RAWINPUT const& raw); #endif +#ifdef WITH_INPUT_TOUCH + /** + * Handles Touch events, communicates directly with GHOST_TouchManager. + */ + void processTouch(WPARAM wParam, LPARAM lParam); +#endif + /** * Returns the local state of the modifier keys (from the message queue). * \param keys The state of the keys. |