[SDL] I want to find the position of the mouse...

Ryan C. Gordon icculus at icculus.org
Mon Jun 4 21:17:50 PDT 2007


> I need to find the mouse coordinates. This is what I'm doing:
> 
> SDL_Cursor* cursor;
> cursor = SDL_GetCursor();

Use SDL_GetMouseState() or catch the various mouse events.

--ryan.





More information about the SDL mailing list