2008-04-29 03:48:42     some questions about libSDL

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-04-29 03:48:42     some questions about libSDL

Wei Jiang (CHINA)

Message: 55194    Dear all,

   I'm doing my work of libSDL and I have three questions need help, thanks:)

   1. libSDL can only work with FDPIC format? If use FLAT, compiles well but can't run.

   2. I add the line "export SDL_NOMOUSE=1" in my "rc" files and it has no effect. The "profile" files doesn't  execute  at all in the initialization. Then how can I export an environment in the init files?

   3. This is an indisposition of libSDL. The mouse cursor is always in the top-left of the screen. How can I erase this icon? Modify the source code of libSDL or which APIs or environment?

   Thanks very much. Any help would be appreciated.

       Wei Jiang

QuoteReplyEditDelete

 

 

2008-04-29 10:56:26     Re: some questions about libSDL

Robin Getz (UNITED STATES)

Message: 55233    Wei:

 

>1. libSDL can only work with FDPIC format?

>If use FLAT, compiles well but can't run.

 

Hmm - for now stick with fdpic - that is the only way I have tested it. I will have a look at flat later.

 

>2. I add the line "export SDL_NOMOUSE=1" in my "rc" files and it has no effect.

 

the /etc/rc process terminates when the script is finished, so that is not the right way to set things for your initial process (unless you are starting your SDL application in that context).

 

>3. The mouse cursor is always in the top-left of the screen.

> How can I erase this icon?

 

Yeah, that has bugged me to - (but I never bothered to look) you might ask on the SDL mailing list.

 

-Robin

QuoteReplyEditDelete

 

 

2008-04-29 15:56:40     Re: some questions about libSDL

Robin Getz (UNITED STATES)

Message: 55242    Wei:

 

Ok - I found on http://ipodlinux.org/SDL_Programming

 

>SDL insists on having a mouse, even if it doesn't make sense. Unless you hide the cursor,

>it'll show up in the upper left corner of your screen. So be sure to execute

>

>SDL_ShowCursor (SDL_DISABLE);

>

>just after setting the video mode.

 

That should do the trick.

 

-Robin

QuoteReplyEditDelete

 

 

2008-04-29 21:25:35     Re: some questions about libSDL

Wei Jiang (CHINA)

Message: 55258    Dear Robin:

   Thank you very much! It does help me.

   Wei Jiang

 

QuoteReplyEditDelete

Attachments

    Outcomes