equal
deleted
inserted
replaced
23 |
23 |
24 /* Window event handling code for SDL */ |
24 /* Window event handling code for SDL */ |
25 |
25 |
26 #include "SDL_events.h" |
26 #include "SDL_events.h" |
27 #include "SDL_events_c.h" |
27 #include "SDL_events_c.h" |
|
28 #include "SDL_mouse_c.h" |
28 #include "../video/SDL_sysvideo.h" |
29 #include "../video/SDL_sysvideo.h" |
29 |
30 |
30 int |
31 int |
31 SDL_SendWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1, |
32 SDL_SendWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1, |
32 int data2) |
33 int data2) |
71 return 0; |
72 return 0; |
72 } |
73 } |
73 window->w = data1; |
74 window->w = data1; |
74 window->h = data2; |
75 window->h = data2; |
75 SDL_OnWindowResized(window); |
76 SDL_OnWindowResized(window); |
|
77 SDL_SetMouseFocusSize(windowID, window->w, window->h); |
76 break; |
78 break; |
77 case SDL_WINDOWEVENT_MINIMIZED: |
79 case SDL_WINDOWEVENT_MINIMIZED: |
78 if (window->flags & SDL_WINDOW_MINIMIZED) { |
80 if (window->flags & SDL_WINDOW_MINIMIZED) { |
79 return 0; |
81 return 0; |
80 } |
82 } |