Mercurial > sdl-ios-xcode
comparison src/video/qtopia/SDL_QWin.h @ 379:11c8a7684f74
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.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 28 May 2002 19:24:11 +0000 |
parents | db0cc6034336 |
children | c96e2137f9eb |
comparison
equal
deleted
inserted
replaced
378:6089cd59e3ca | 379:11c8a7684f74 |
---|---|
34 #include <qwidget.h> | 34 #include <qwidget.h> |
35 #include <qpainter.h> | 35 #include <qpainter.h> |
36 #include <qdirectpainter_qws.h> | 36 #include <qdirectpainter_qws.h> |
37 | 37 |
38 #include "SDL_events.h" | 38 #include "SDL_events.h" |
39 //#include "SDL_BView.h" | |
40 | 39 |
41 extern "C" { | 40 extern "C" { |
42 #include "SDL_events_c.h" | 41 #include "SDL_events_c.h" |
43 }; | 42 }; |
44 | 43 |
75 void setWFlags(WFlags flags) { | 74 void setWFlags(WFlags flags) { |
76 QWidget::setWFlags(flags); | 75 QWidget::setWFlags(flags); |
77 my_flags = flags; | 76 my_flags = flags; |
78 } | 77 } |
79 const QPoint& mousePos() const { return my_mouse_pos; } | 78 const QPoint& mousePos() const { return my_mouse_pos; } |
80 void setMousePos(const QPoint& newpos) { my_mouse_pos = newpos; } | 79 void setMousePos(const QPoint& newpos); |
81 void setFullscreen(bool); | 80 void setFullscreen(bool); |
82 | 81 |
83 void lockScreen() { | 82 void lockScreen() { |
84 if(!my_painter) { | 83 if(!my_painter) { |
85 my_painter = new QDirectPainter(this); | 84 my_painter = new QDirectPainter(this); |