Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
480:92596bfe8446 | 481:c96e2137f9eb |
---|---|
38 #include "SDL_events.h" | 38 #include "SDL_events.h" |
39 | 39 |
40 extern "C" { | 40 extern "C" { |
41 #include "SDL_events_c.h" | 41 #include "SDL_events_c.h" |
42 }; | 42 }; |
43 | |
44 typedef enum { | |
45 SDL_QT_NO_ROTATION = 0, | |
46 SDL_QT_ROTATION_90, | |
47 SDL_QT_ROTATION_270 | |
48 } screenRotationT; | |
49 | |
50 extern screenRotationT screenRotation; | |
43 | 51 |
44 class SDL_QWin : public QWidget | 52 class SDL_QWin : public QWidget |
45 { | 53 { |
46 void QueueKey(QKeyEvent *e, int pressed); | 54 void QueueKey(QKeyEvent *e, int pressed); |
47 public: | 55 public: |