aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Apers2006-03-07 19:19:37 +0000
committerChris Apers2006-03-07 19:19:37 +0000
commit1157cbf84213773a91217c348dae1f05663b2fd7 (patch)
tree0775bb8490ec2195af32e6cf87bb0dbf2910678c
parentfc84c7fc1d8ff4d6cff0b998322fb6015287e79c (diff)
downloadscummvm-rg350-1157cbf84213773a91217c348dae1f05663b2fd7.tar.gz
scummvm-rg350-1157cbf84213773a91217c348dae1f05663b2fd7.tar.bz2
scummvm-rg350-1157cbf84213773a91217c348dae1f05663b2fd7.zip
Fixed invalid event returned with ARM OS5 backend
svn-id: r21132
-rwxr-xr-xbackends/PalmOS/Src/base_event.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/backends/PalmOS/Src/base_event.cpp b/backends/PalmOS/Src/base_event.cpp
index 03efea892f..2b52fd4fdb 100755
--- a/backends/PalmOS/Src/base_event.cpp
+++ b/backends/PalmOS/Src/base_event.cpp
@@ -22,10 +22,12 @@
*
*/
+#include "be_base.h"
+
#if defined(COMPILE_OS5) && defined(PALMOS_ARM)
-# include <System/EventPrv.h>
+extern "C" void SysEventGet(EventType *eventP, Int32 timeout);
+extern "C" void SysEventAddToQueue (const EventType *eventP);
#endif
-#include "be_base.h"
void OSystem_PalmBase::timer_handler() {
UInt32 msecs = getMillis();
@@ -83,14 +85,13 @@ bool OSystem_PalmBase::pollEvent(Event &event) {
battery_handler();
timer_handler();
sound_handler();
-
+
for(;;) {
#if defined(COMPILE_OS5) && defined(PALMOS_ARM)
SysEventGet(&ev, evtNoWait);
#else
EvtGetEvent(&ev, evtNoWait);
#endif
-
// check for hardkey repeat for mouse emulation
keyCurrentState = KeyCurrentState();
// check_hard_keys();