Mouse Cursor

How can I hide the cursor?

How can I hide the cursor?

SDL_ShowCursor(0);

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Are the SDL keyboard events buffered? e.g. if I only can check the state once ever 100 ms is there a way to sill ensure all messages (keyup,keydown) are recieved?

thanks

chris

Are the SDL keyboard events buffered? e.g. if I only can check the state once ever 100 ms is there a way to sill ensure all messages (keyup,keydown) are recieved?

Yes, they are.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Hi,
there’s a method for changing the mouse cursor with
a custom one stored in a image file?

I think that can be with a surface linked to mouse coords.
There’s a better way?

thanks
Alessandro

— Alessandro Ardolino wrote:

there’s a method for changing the mouse cursor with
a custom one stored in a image file?

I think that can be with a surface linked to mouse coords.
There’s a better way?

After reading the example at
http://sdldoc.csn.ul.ie/sdlcreatecursor.php
and doing some other reading around the 'net, it is my understanding
that most systems have hardware acceleration for the mouse cursor in
specific and that use of SDL’s cursor routines comes highly
recommended.
They are, however, limited to white, black, transparent, and XOR as
colors.

                                                            NBarnes__________________________________

Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.