view src/main/linux/SDL_Qtopia_main.cc @ 381:bc1401311390

Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 28 May 2002 20:01:29 +0000
parents 11c8a7684f74
children d15bef937f00
line wrap: on
line source


/* Include the SDL main definition header */
#include "SDL_main.h"
#ifdef main
#undef main
#endif
#ifdef QWS
#include <qpe/qpeapplication.h>
#endif

extern int SDL_main(int argc, char *argv[]);

int main(int argc, char *argv[])
{
#ifdef QWS
  // This initializes the Qtopia application. It needs to be done here
  // because it parses command line options.
  QPEApplication app(argc, argv);
  QWidget dummy;
  app.showMainWidget(&dummy);
#endif
  return(SDL_main(argc, argv));
}