diff options
author | Chris Apers | 2006-06-05 19:17:30 +0000 |
---|---|---|
committer | Chris Apers | 2006-06-05 19:17:30 +0000 |
commit | f54bf6759fe437400c6115e9d9571f2aa3c62bc4 (patch) | |
tree | 2f367184b31831a5f831bfba0c3959b310e2b5d6 /backends/PalmOS/Src/base_mouse.cpp | |
parent | 61737da11580b495e35097f8f39974132349cd2d (diff) | |
download | scummvm-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/base_mouse.cpp')
-rw-r--r-- | backends/PalmOS/Src/base_mouse.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/backends/PalmOS/Src/base_mouse.cpp b/backends/PalmOS/Src/base_mouse.cpp index 8fa0802585..1fb00e1551 100644 --- a/backends/PalmOS/Src/base_mouse.cpp +++ b/backends/PalmOS/Src/base_mouse.cpp @@ -52,14 +52,10 @@ void OSystem_PalmBase::simulate_mouse(Event &event, Int8 iHoriz, Int8 iVert, Coo Int16 y = _mouseCurState.y; Int16 slow; - if (_lastKey != kKeyNone) { - _lastKeyRepeat++; + _lastKeyRepeat++; - if (_lastKeyRepeat > 16) - _lastKeyRepeat = 16; - } - else - _lastKeyRepeat = 0; + if (_lastKeyRepeat > 32) + _lastKeyRepeat = 32; slow = (iHoriz && iVert) ? 2 : 1; |