aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone/iphone_video.h
diff options
context:
space:
mode:
authorJohannes Schickel2012-03-08 21:55:56 +0100
committerJohannes Schickel2012-04-02 00:03:28 +0200
commitd27d8cec8304d4ab85238333825bd2b9a01e5f8c (patch)
tree8393f9c0b09b8ceeeef1fe3222014a5539ddd366 /backends/platform/iphone/iphone_video.h
parent0a08b2461fe5ff55ef83253d42d05138711fba22 (diff)
downloadscummvm-rg350-d27d8cec8304d4ab85238333825bd2b9a01e5f8c.tar.gz
scummvm-rg350-d27d8cec8304d4ab85238333825bd2b9a01e5f8c.tar.bz2
scummvm-rg350-d27d8cec8304d4ab85238333825bd2b9a01e5f8c.zip
IPHONE: Use Common::List to store the event queue.
Diffstat (limited to 'backends/platform/iphone/iphone_video.h')
-rw-r--r--backends/platform/iphone/iphone_video.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/backends/platform/iphone/iphone_video.h b/backends/platform/iphone/iphone_video.h
index 1405fe35f1..d1ee47489d 100644
--- a/backends/platform/iphone/iphone_video.h
+++ b/backends/platform/iphone/iphone_video.h
@@ -34,10 +34,20 @@
#include "iphone_keyboard.h"
#include "iphone_common.h"
+#include "common/list.h"
+
+struct InternalEvent {
+ InternalEvent() : type(), value1(), value2() {}
+ InternalEvent(InputEvent t, int v1, int v2) : type(t), value1(v1), value2(v2) {}
+
+ InputEvent type;
+ int value1, value2;
+};
+
@interface iPhoneView : UIView {
VideoContext _videoContext;
- NSMutableArray *_events;
+ Common::List<InternalEvent> _events;
SoftKeyboard *_keyboardView;
EAGLContext *_context;
@@ -94,8 +104,6 @@
- (void)updateMouseCursorScaling;
- (void)updateMouseCursor;
-- (id)getEvent;
-
- (void)deviceOrientationChanged:(UIDeviceOrientation)orientation;
- (void)applicationSuspend;