SDL FAQ

From wiki.gp2x.org

Contents

Help my Video/Audio/Network SDL stuff does not work at all

You are probably using Paeryn's HW-SDL version. You need to initalize SDL_VIDEO at all cost. All other stuff will not work unless you do and you'll get unpredictable results.

I see a cursor in the top left corner

You need to disable the cursor. With SDL, use SDL_ShowCursor(0) after calling SDL_SetVideoMode. If you are using PyGame, you should use pygame.mouse.set_visible(false).

SDL_SetVideoMode is causing unpredicted crashes at startup

SDL_SetVideoMode on the GP2X currently only supports a limited number of parameters.

Known to work is:

SDL_SetVideoMode (320, 240, 16, SDL_SWSURFACE);
  • only 320x240
  • 8bpp, SDL_SWSURFACE
  • 16bpp, SDL_SWSURFACE
  • 16bpp, SDL_FULLSCREEN (nkSnes2x uses SDL_FULLSCREEN. --Titousensei 17:27, 30 November 2005 (GMT))

What definitely won't work :

  • 16bpp, SDL_DOUBLEBUF | SDL_SWSURFACE

What else works is to be evaluated.

How is the joystick used in SDL?

See SDL_Joystick_mapping, Suggested Joystick Configurations, and Common User Interface Recommendations.

Where can I find SDL documentation?

The SDL documentation wiki.

What parameters does SDL_Mixer accept?

See http://www.gp32x.com/board/index.php?showtopic=22759.

Are there any other SDKs/APIs?

See Alternative SDKs.

Personal tools