diff options
author | Bastien Bouclet | 2019-11-07 11:02:00 +0100 |
---|---|---|
committer | Bastien Bouclet | 2019-11-07 11:02:00 +0100 |
commit | 652722e760fab2959c74e2fa65452f334c8b8478 (patch) | |
tree | 5c03f9e31bcfe9d73292d66a2eaaaa3738e41de8 /backends/platform/3ds/osystem.h | |
parent | 6901ee0242c128d3b6026f83a10da4ca90e265e0 (diff) | |
download | scummvm-rg350-652722e760fab2959c74e2fa65452f334c8b8478.tar.gz scummvm-rg350-652722e760fab2959c74e2fa65452f334c8b8478.tar.bz2 scummvm-rg350-652722e760fab2959c74e2fa65452f334c8b8478.zip |
3DS: Rework mouse cursor movement
- Fix clipping the cursor position
- Ensure the mouse has the same vertical and horizontal speed
Diffstat (limited to 'backends/platform/3ds/osystem.h')
-rw-r--r-- | backends/platform/3ds/osystem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/platform/3ds/osystem.h b/backends/platform/3ds/osystem.h index 70cd475cf9..c15c353c24 100644 --- a/backends/platform/3ds/osystem.h +++ b/backends/platform/3ds/osystem.h @@ -111,6 +111,7 @@ public: OSystem::TransactionError endGFXTransaction(); int16 getHeight(){ return _gameHeight; } int16 getWidth(){ return _gameWidth; } + float getScaleRatio() const; void setPalette(const byte *colors, uint start, uint num); void grabPalette(byte *colors, uint start, uint num) const; void copyRectToScreen(const void *buf, int pitch, int x, int y, int w, @@ -142,6 +143,8 @@ public: // Transform point from touchscreen coords into gamescreen coords void transformPoint(touchPosition &point); + // Clip point to gamescreen coords + void clipPoint(touchPosition &point); void setCursorDelta(float deltaX, float deltaY); |