Remember me

Lost Password?

Register now!


Who's Online
71 user(s) are online (59 user(s) are browsing Forums)

Members: 1
Guests: 70

tarzin, more...

Support us!


Report message:*

Re: SDL1 open issues

Subject: Re: SDL1 open issues
by kas1e on 2018/1/13 16:46:00

Made some more experiments, and found that they specially did that 1 pixel transparent cursor. As they write before in comment, that is trick "Showingthe SDL 1 pixel transparent cursor allows us to get absolute mouse coordinates, this means we can use tablet in fullscreen mode."

Then, their code looks like:

cur SDL_CreateCursor(&cursorData, &cursorData1,1,0,0);

 if (
cur != NULL)
SDL_ShowCursor(SDL_ENABLE); // show the SDL 1 pixel transparent cursor
failed to create the 1 pixel transparent cursor
(SDL_DISABLE); // Hide the SDL mouse cursor, we use our own internal one

Once i comment out part with SDL_SetCursor(cur); and SDL_ShowCursor(SDL_ENABLE); , and keep SDL_ShowCursor(SDL_DISABLE); (so to hide sdl mouse cursor , and user internal one), then all start to works as should, no distortion, all is fine.

What mean, imho, that something can be wrong with our SDL_SetCursor() and or SDL_ShowCursor() when it come to 1 pixel transpent one..

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project