开发者

SDL changing cursor to Windows default

开发者 https://www.devze.com 2023-01-22 22:22 出处:网络
I\'m making a simple windowed game and I want a standard system cursor instead of SDL\'s black one. Is this possible without manual creation of c开发者_StackOverflow社区ursor?This is not possible as f

I'm making a simple windowed game and I want a standard system cursor instead of SDL's black one. Is this possible without manual creation of c开发者_StackOverflow社区ursor?


This is not possible as far as I know. Because SDL works on all major platforms, even those without default cursors, SDL creators decided to always use a custom cursor. Drawing the default system cursor shouldn't be that hard though - just load the .cur file and paint it as a bitmap.


It is possible for you to to display 4 types of default SDL cursors with the help of SDL_CreateCursor. The SDL documentation provides this information:

http://www.libsdl.org/cgi/docwiki.cgi/SDL_CreateCursor

0

精彩评论

暂无评论...
验证码 换一张
取 消