4 See test program at the bottom of this file.
8 - When in relative mode, the mouse shouldn't be moveable outside of the window.
9 - When the cursor is outside the window when relative mode is enabled, mouse
10 clicks should not go to whatever app was under the cursor previously.
11 - When alt/cmd-tabbing between a relative mode app and another app, clicks when
12 in the relative mode app should also not go to whatever app was under the
24 while (SDL_PollEvent(&event))
38 int main(int argc, char *argv[])
42 SDL_Init(SDL_INIT_VIDEO);
44 win = SDL_CreateWindow("Test", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 800, 600, 0);
45 SDL_SetRelativeMouseMode(SDL_TRUE);
53 SDL_DestroyWindow(win);