Skip to content

Commit

Permalink
Minor update to the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 6, 2011
1 parent c5172eb commit b4496cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.txt
Expand Up @@ -164,7 +164,10 @@ Some general ManyMouse usage notes:
SDL_Init(SDL_INIT_VIDEO);
driver = SDL_VideoDriverName(namebuf, sizeof (namebuf));
if (driver && (strcmp(driver, "x11") == 0))
setenv("SDL_MOUSE_RELATIVE", "0", 1);
{
if (strcmp(ManyMouse_DriverName(), "X11 XInput2 extension") == 0)
setenv("SDL_MOUSE_RELATIVE", "0", 1);
}

// now you may call SDL_SetVideoMode() or SDL_WM_GrabInput() safely.

Expand Down

0 comments on commit b4496cf

Please sign in to comment.