diff options
author | Johannes Schickel | 2012-04-02 00:02:31 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-04-02 00:03:28 +0200 |
commit | b886bc0a418462dd2bb5c0f0d1cf21f8f109b34b (patch) | |
tree | 3f71cffdc5191293549a0c3dade4c6c0ef9f68be /backends/platform/iphone/iphone_common.h | |
parent | a92c54454f151377e0fc34be525b90c42b42d4af (diff) | |
download | scummvm-rg350-b886bc0a418462dd2bb5c0f0d1cf21f8f109b34b.tar.gz scummvm-rg350-b886bc0a418462dd2bb5c0f0d1cf21f8f109b34b.tar.bz2 scummvm-rg350-b886bc0a418462dd2bb5c0f0d1cf21f8f109b34b.zip |
IPHONE: Use InternalEvent directly.
Diffstat (limited to 'backends/platform/iphone/iphone_common.h')
-rw-r--r-- | backends/platform/iphone/iphone_common.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/backends/platform/iphone/iphone_common.h b/backends/platform/iphone/iphone_common.h index 19e4f2ce9b..9c45a240cb 100644 --- a/backends/platform/iphone/iphone_common.h +++ b/backends/platform/iphone/iphone_common.h @@ -86,9 +86,17 @@ struct VideoContext { int shakeOffsetY; }; +struct InternalEvent { + InternalEvent() : type(), value1(), value2() {} + InternalEvent(InputEvent t, int v1, int v2) : type(t), value1(v1), value2(v2) {} + + InputEvent type; + int value1, value2; +}; + // On the ObjC side void iPhone_updateScreen(); -bool iPhone_fetchEvent(int *outEvent, int *outX, int *outY); +bool iPhone_fetchEvent(InternalEvent *event); const char *iPhone_getDocumentsDir(); bool iPhone_isHighResDevice(); |