Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32video.h @ 1720:a1ebb17f9c52 SDL-1.3
Cleaned up a bunch of warnings, started adding Win32 event support
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 30 Jun 2006 05:42:49 +0000 |
parents | 5b9f50c957ed |
children | 5daa04d862f1 |
comparison
equal
deleted
inserted
replaced
1719:5b9f50c957ed | 1720:a1ebb17f9c52 |
---|---|
29 #define WIN32_LEAN_AND_MEAN | 29 #define WIN32_LEAN_AND_MEAN |
30 #define UNICODE | 30 #define UNICODE |
31 #include <windows.h> | 31 #include <windows.h> |
32 | 32 |
33 #include "SDL_win32events.h" | 33 #include "SDL_win32events.h" |
34 #include "SDL_win32keyboard.h" | |
35 #include "SDL_win32mouse.h" | |
34 #include "SDL_win32window.h" | 36 #include "SDL_win32window.h" |
35 | 37 |
36 #ifdef UNICODE | 38 #ifdef UNICODE |
37 #define WIN_StringToUTF8(S) SDL_iconv_string("UTF-8", "UCS-2", (char *)S, (wcslen(S)+1)*sizeof(WCHAR)) | 39 #define WIN_StringToUTF8(S) SDL_iconv_string("UTF-8", "UCS-2", (char *)S, (wcslen(S)+1)*sizeof(WCHAR)) |
38 #define WIN_UTF8ToString(S) (WCHAR *)SDL_iconv_string("UCS-2", "UTF-8", (char *)S, SDL_strlen(S)+1) | 40 #define WIN_UTF8ToString(S) (WCHAR *)SDL_iconv_string("UCS-2", "UTF-8", (char *)S, SDL_strlen(S)+1) |
41 #define WIN_UTF8ToString(S) SDL_iconv_string("ASCII", "UTF-8", (char *)S, SDL_strlen(S)+1) | 43 #define WIN_UTF8ToString(S) SDL_iconv_string("ASCII", "UTF-8", (char *)S, SDL_strlen(S)+1) |
42 #endif | 44 #endif |
43 | 45 |
44 /* Private display data */ | 46 /* Private display data */ |
45 | 47 |
46 struct SDL_PrivateVideoData | 48 typedef struct |
47 { | 49 { |
48 }; | 50 int mouse; |
51 int keyboard; | |
52 } SDL_VideoData; | |
49 | 53 |
50 #endif /* _SDL_win32video_h */ | 54 #endif /* _SDL_win32video_h */ |
51 | 55 |
52 /* vi: set ts=4 sw=4 expandtab: */ | 56 /* vi: set ts=4 sw=4 expandtab: */ |