Ignore:
Timestamp:
Jan 19, 2011, 1:34:23 PM (11 years ago)
Author:
sam
Message:

Make SdlInput regularly inject the mouse position into the Input singleton.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sdlinput.cpp

    r221 r233  
    4949
    5050    /* Handle mouse input */
    51     SDL_GetMouseState(&data->mx, &data->my);
     51    Int2 mouse;
     52    if (SDL_GetAppState() & SDL_APPMOUSEFOCUS)
     53        SDL_GetMouseState(&mouse.x, &mouse.y);
     54    else
     55        mouse.x = mouse.y = -1;
     56    Input::SetMousePos(mouse);
    5257
    5358    /* Handle keyboard and WM events */
Note: See TracChangeset for help on using the changeset viewer.