SDL-mirror/src/main/linux/SDL_Qtopia_main.cc
Sam Lantinga 5e5d89d853 Date: Fri, 24 May 2002 10:32:00 -0700
From: David Hedbor <david@hedbor.org>
Subject: more patches

Ok, another thing I discovered when porting prboom to the  Zaurus -
mouse events weren't rotated when the screen was (i.e you got
incorrect events there).

This is now fixed. Also noticed that SDL_WarpMouse isn't handled
correctly, but I haven't looked at fixing that yes.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40380
2002-05-28 19:24:11 +00:00

23 lines
480 B
C++

/* 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));
}