| | |
| | | |
| | | #include "../../core/windows/SDL_windows.h" |
| | | |
| | | #include "SDL_assert.h" |
| | | #include "../SDL_sysvideo.h" |
| | | #include "../SDL_pixels_c.h" |
| | | #include "../../events/SDL_keyboard_c.h" |
| | |
| | | #include "SDL_windowsvideo.h" |
| | | #include "SDL_windowswindow.h" |
| | | #include "SDL_hints.h" |
| | | #include "SDL_timer.h" |
| | | |
| | | /* Dropfile support */ |
| | | #include <shellapi.h> |
| | |
| | | data->hinstance = (HINSTANCE) GetWindowLongPtr(hwnd, GWLP_HINSTANCE); |
| | | data->created = created; |
| | | data->mouse_button_flags = 0; |
| | | data->last_pointer_update = (LPARAM)-1; |
| | | data->videodata = videodata; |
| | | data->initializing = SDL_TRUE; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /* |
| | | * Creates a HelperWindow used for DirectInput events. |
| | | * Creates a HelperWindow used for DirectInput. |
| | | */ |
| | | int |
| | | SDL_HelperWindowCreate(void) |
| | |
| | | return; |
| | | } |
| | | if (data->skip_update_clipcursor) { |
| | | data->skip_update_clipcursor = SDL_FALSE; |
| | | return; |
| | | } |
| | | if (!GetClipCursor(&clipped_rect)) { |
| | |
| | | } |
| | | } |
| | | } |
| | | } else if (SDL_memcmp(&clipped_rect, &data->cursor_clipped_rect, sizeof(clipped_rect)) == 0) { |
| | | ClipCursor(NULL); |
| | | SDL_zero(data->cursor_clipped_rect); |
| | | } else { |
| | | POINT first, second; |
| | | |
| | | first.x = clipped_rect.left; |
| | | first.y = clipped_rect.top; |
| | | second.x = clipped_rect.right - 1; |
| | | second.y = clipped_rect.bottom - 1; |
| | | if (PtInRect(&data->cursor_clipped_rect, first) && |
| | | PtInRect(&data->cursor_clipped_rect, second)) { |
| | | ClipCursor(NULL); |
| | | SDL_zero(data->cursor_clipped_rect); |
| | | } |
| | | } |
| | | data->last_updated_clipcursor = SDL_GetTicks(); |
| | | } |
| | | |
| | | int |