aboutsummaryrefslogtreecommitdiff
path: root/backends/PalmOS/Src/be_base.cpp
diff options
context:
space:
mode:
authorChris Apers2006-06-05 19:17:30 +0000
committerChris Apers2006-06-05 19:17:30 +0000
commitf54bf6759fe437400c6115e9d9571f2aa3c62bc4 (patch)
tree2f367184b31831a5f831bfba0c3959b310e2b5d6 /backends/PalmOS/Src/be_base.cpp
parent61737da11580b495e35097f8f39974132349cd2d (diff)
downloadscummvm-rg350-f54bf6759fe437400c6115e9d9571f2aa3c62bc4.tar.gz
scummvm-rg350-f54bf6759fe437400c6115e9d9571f2aa3c62bc4.tar.bz2
scummvm-rg350-f54bf6759fe437400c6115e9d9571f2aa3c62bc4.zip
- Added arrow keys emulation
- Ajust mouse simulation so that there is no more hang while moving it svn-id: r22938
Diffstat (limited to 'backends/PalmOS/Src/be_base.cpp')
-rw-r--r--backends/PalmOS/Src/be_base.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/PalmOS/Src/be_base.cpp b/backends/PalmOS/Src/be_base.cpp
index 26521adb16..938b3b98c6 100644
--- a/backends/PalmOS/Src/be_base.cpp
+++ b/backends/PalmOS/Src/be_base.cpp
@@ -66,6 +66,9 @@ OSystem_PalmBase::OSystem_PalmBase() {
MemSet(&_mouseOldState, sizeof(_mouseOldState), 0);
MemSet(&_timer, sizeof(TimerType), 0);
MemSet(&_sound, sizeof(SoundType), 0);
+
+ _keyMouseRepeat = 0;
+ _keyMouseDelay = (gVars->arrowKeys) ? computeMsecs(125) : computeMsecs(25);
}
void OSystem_PalmBase::initBackend() {
@@ -88,7 +91,7 @@ uint32 OSystem_PalmBase::getMillis() {
}
void OSystem_PalmBase::delayMillis(uint msecs) {
- Int32 delay = (SysTicksPerSecond() * msecs) / 1000;
+ Int32 delay = computeMsecs(msecs);
if (delay > 0)
SysTaskDelay(delay);