src/video/windows/SDL_windowsvideo.h
changeset 7191 75360622e65f
parent 6938 b272d47f70a7
child 7762 51abf7664304
equal deleted inserted replaced
7190:11612d544fcd 7191:75360622e65f
    49 #include "SDL_loadso.h"
    49 #include "SDL_loadso.h"
    50 
    50 
    51 
    51 
    52 #if WINVER < 0x0601
    52 #if WINVER < 0x0601
    53 /* Touch input definitions */
    53 /* Touch input definitions */
    54 #define TWF_FINETOUCH	1
    54 #define TWF_FINETOUCH   1
    55 #define TWF_WANTPALM	2
    55 #define TWF_WANTPALM    2
    56 
    56 
    57 #define TOUCHEVENTF_MOVE 0x0001
    57 #define TOUCHEVENTF_MOVE 0x0001
    58 #define TOUCHEVENTF_DOWN 0x0002
    58 #define TOUCHEVENTF_DOWN 0x0002
    59 #define TOUCHEVENTF_UP   0x0004
    59 #define TOUCHEVENTF_UP   0x0004
    60 
    60 
    61 DECLARE_HANDLE(HTOUCHINPUT);
    61 DECLARE_HANDLE(HTOUCHINPUT);
    62 
    62 
    63 typedef struct _TOUCHINPUT {
    63 typedef struct _TOUCHINPUT {
    64 	LONG      x;
    64     LONG      x;
    65 	LONG      y;
    65     LONG      y;
    66 	HANDLE    hSource;
    66     HANDLE    hSource;
    67 	DWORD     dwID;
    67     DWORD     dwID;
    68 	DWORD     dwFlags;
    68     DWORD     dwFlags;
    69 	DWORD     dwMask;
    69     DWORD     dwMask;
    70 	DWORD     dwTime;
    70     DWORD     dwTime;
    71 	ULONG_PTR dwExtraInfo;
    71     ULONG_PTR dwExtraInfo;
    72 	DWORD     cxContact;
    72     DWORD     cxContact;
    73 	DWORD     cyContact;
    73     DWORD     cyContact;
    74 } TOUCHINPUT, *PTOUCHINPUT;
    74 } TOUCHINPUT, *PTOUCHINPUT;
    75 
    75 
    76 #endif /* WINVER < 0x0601 */
    76 #endif /* WINVER < 0x0601 */
    77 
    77 
    78 typedef BOOL  (*PFNSHFullScreen)(HWND, DWORD);
    78 typedef BOOL  (*PFNSHFullScreen)(HWND, DWORD);
    79 typedef void  (*PFCoordTransform)(SDL_Window*, POINT*);
    79 typedef void  (*PFCoordTransform)(SDL_Window*, POINT*);
    80 
    80 
    81 typedef struct  
    81 typedef struct
    82 {
    82 {
    83     void **lpVtbl;
    83     void **lpVtbl;
    84     int refcount;
    84     int refcount;
    85     void *data;
    85     void *data;
    86 } TSFSink;
    86 } TSFSink;
   113 
   113 
   114 typedef struct SDL_VideoData
   114 typedef struct SDL_VideoData
   115 {
   115 {
   116     int render;
   116     int render;
   117 
   117 
   118 	DWORD clipboard_count;
   118     DWORD clipboard_count;
   119 
   119 
   120 	/* Touch input functions */
   120     /* Touch input functions */
   121 	void* userDLL;
   121     void* userDLL;
   122 	BOOL (WINAPI *CloseTouchInputHandle)( HTOUCHINPUT );
   122     BOOL (WINAPI *CloseTouchInputHandle)( HTOUCHINPUT );
   123 	BOOL (WINAPI *GetTouchInputInfo)( HTOUCHINPUT, UINT, PTOUCHINPUT, int );
   123     BOOL (WINAPI *GetTouchInputInfo)( HTOUCHINPUT, UINT, PTOUCHINPUT, int );
   124 	BOOL (WINAPI *RegisterTouchWindow)( HWND, ULONG );
   124     BOOL (WINAPI *RegisterTouchWindow)( HWND, ULONG );
   125 
   125 
   126     SDL_bool ime_com_initialized;
   126     SDL_bool ime_com_initialized;
   127     struct ITfThreadMgr *ime_threadmgr;
   127     struct ITfThreadMgr *ime_threadmgr;
   128     SDL_bool ime_initialized;
   128     SDL_bool ime_initialized;
   129     SDL_bool ime_enabled;
   129     SDL_bool ime_enabled;