[SDL] I want to find the position of the mouse...
Torsten Giebl
wizard at syntheticsw.com
Mon Jun 4 16:37:52 PDT 2007
Hello !
> I need to find the mouse coordinates. This is what I'm doing:
>
> SDL_Cursor* cursor;
> cursor = SDL_GetCursor();
>
>
> However, cursor->hot_x and cursor->hot_y always contain 0... What am I
> doing wrong?
This is wrong, Cursor means here the Bitmap of the Mouse
Cursor, for example you can change the Bitmap of the Mouse
Cursor to a question mark or a waiting hourglass or something
like that.
To get Mouse Events look here :
http://www.libsdl.org/intro.en/usingevents.html
CU
More information about the SDL
mailing list