Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32events.c @ 4569:e1664f94f026
Andrey A.
I made a video driver GAPI/RAW for WinCE (SDL-1.3).
RAW mode has a priority, and also, GAPI mode works with environment
"SDL_VIDEO_RENDERER=gapi" and for RAW mode "SDL_VIDEO_RENDERER=raw".
I checked the work on the screens of VGA, WVGA, QVGA, WQVGA, HVGA,
+ tested all modes with WindowsMobile Emulator.
Also, correctly draws the pointer position and the scale of the pointer
for VGA/WVGA modes,
correctly draws top left position for DM orientation screen, and
portrait/landscape/square geometry the screen also correct.
Also, I added a small fix for GDI fullscreen mode.
Patch for latest revision SDL-1.3 in an attachment.
Also added small path for mingw32ce build.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 27 Jul 2010 21:31:28 -0700 |
parents | e2d46c5c7483 |
children | c24ba2cc9583 |
comparison
equal
deleted
inserted
replaced
4568:25b9cd8bdc30 | 4569:e1664f94f026 |
---|---|
182 } | 182 } |
183 returnCode = 0; | 183 returnCode = 0; |
184 break; | 184 break; |
185 | 185 |
186 case WM_MOUSEMOVE: | 186 case WM_MOUSEMOVE: |
187 #ifdef _WIN32_WCE | |
188 /* transform coords for VGA, WVGA... */ | |
189 { | |
190 SDL_VideoData *videodata = data->videodata; | |
191 if(videodata->CoordTransform && | |
192 (videodata->render == RENDER_GAPI || videodata->render == RENDER_RAW)) | |
193 { | |
194 POINT pt; | |
195 pt.x = LOWORD(lParam); | |
196 pt.y = HIWORD(lParam); | |
197 videodata->CoordTransform(data->window, &pt); | |
198 SDL_SendMouseMotion(data->window, 0, pt.x, pt.y); | |
199 break; | |
200 } | |
201 } | |
202 #endif | |
187 SDL_SendMouseMotion(data->window, 0, LOWORD(lParam), HIWORD(lParam)); | 203 SDL_SendMouseMotion(data->window, 0, LOWORD(lParam), HIWORD(lParam)); |
188 break; | 204 break; |
189 | 205 |
190 case WM_LBUTTONDOWN: | 206 case WM_LBUTTONDOWN: |
191 SDL_SendMouseButton(data->window, SDL_PRESSED, SDL_BUTTON_LEFT); | 207 SDL_SendMouseButton(data->window, SDL_PRESSED, SDL_BUTTON_LEFT); |