Mercurial > sdl-ios-xcode
comparison src/events/SDL_events_c.h @ 4249:429c8dd3175d SDL-1.2
Fixed bug #713
Don't clamp the mouse coordinates to the video surface size, instead clamp them to the last known window size.
This allows users to get the correct mouse coordinates even if they don't call SDL_SetVideoMode() in response to an SDL_VIDEORESIZE event (used as a hack to retain the OpenGL context on Windows and Linux after a window resize)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 27 Sep 2009 05:18:43 +0000 |
parents | a1b03ba2fcd0 |
children |
comparison
equal
deleted
inserted
replaced
4248:a9c6e65c1416 | 4249:429c8dd3175d |
---|---|
62 extern int SDL_PrivateResize(int w, int h); | 62 extern int SDL_PrivateResize(int w, int h); |
63 extern int SDL_PrivateExpose(void); | 63 extern int SDL_PrivateExpose(void); |
64 extern int SDL_PrivateQuit(void); | 64 extern int SDL_PrivateQuit(void); |
65 extern int SDL_PrivateSysWMEvent(SDL_SysWMmsg *message); | 65 extern int SDL_PrivateSysWMEvent(SDL_SysWMmsg *message); |
66 | 66 |
67 /* Used to clamp the mouse coordinates separately from the video surface */ | |
68 extern void SDL_SetMouseRange(int maxX, int maxY); | |
69 | |
67 /* Used by the activity event handler to remove mouse focus */ | 70 /* Used by the activity event handler to remove mouse focus */ |
68 extern void SDL_ResetMouse(void); | 71 extern void SDL_ResetMouse(void); |
69 | 72 |
70 /* Used by the activity event handler to remove keyboard focus */ | 73 /* Used by the activity event handler to remove keyboard focus */ |
71 extern void SDL_ResetKeyboard(void); | 74 extern void SDL_ResetKeyboard(void); |