diff src/video/qtopia/SDL_QWin.h @ 481:c96e2137f9eb

Date: Sat, 31 Aug 2002 15:42:45 +0200 From: Alexandre Courbot Subject: [SDL] Qtopia port fixes/improvments -Whenever the screen is rotated, the pad is rotated as well, -Fixed a mouse bug: when tapping on the screen, the click event was often sent at the previous position of the stylus (resulting in strange behavior in Scummvm for instance) -Added the SDL_QT_INVERT_ROTATION environment variable which, when set, rotates the screen (and the mouse, and the pad) the other way. This can be useful for left-handed people.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 01 Sep 2002 00:37:24 +0000
parents 11c8a7684f74
children 969fbd4dcd4e
line wrap: on
line diff
--- a/src/video/qtopia/SDL_QWin.h	Sat Aug 31 21:00:28 2002 +0000
+++ b/src/video/qtopia/SDL_QWin.h	Sun Sep 01 00:37:24 2002 +0000
@@ -41,6 +41,14 @@
 #include "SDL_events_c.h"
 };
 
+typedef enum { 
+    SDL_QT_NO_ROTATION = 0, 
+    SDL_QT_ROTATION_90, 
+    SDL_QT_ROTATION_270 
+} screenRotationT;
+
+extern screenRotationT screenRotation;
+
 class SDL_QWin : public QWidget
 {
   void QueueKey(QKeyEvent *e, int pressed);