diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-11-02 08:12:21 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-11-02 08:12:21 +1100 |
commit | 0497048b444056248be156c73cba694ca30a81dd (patch) | |
tree | f83018b05fb58402fdfebdc87239ef51049c5b3a /source/application/StarMainApplication_sdl.cpp | |
parent | 2cf97d763c7a398854aafdc24cddba7c20d0f701 (diff) |
Add input.mousePosition
Diffstat (limited to 'source/application/StarMainApplication_sdl.cpp')
-rw-r--r-- | source/application/StarMainApplication_sdl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/application/StarMainApplication_sdl.cpp b/source/application/StarMainApplication_sdl.cpp index 8b8c702..d9a0bd2 100644 --- a/source/application/StarMainApplication_sdl.cpp +++ b/source/application/StarMainApplication_sdl.cpp @@ -589,6 +589,10 @@ private: parent->m_cursorVisible = cursorVisible; } + void setCursorPosition(Vec2I cursorPosition) override { + SDL_WarpMouseInWindow(parent->m_sdlWindow, cursorPosition[0], cursorPosition[1]); + } + bool setCursorImage(const String& id, const ImageConstPtr& image, unsigned scale, const Vec2I& offset) override { return parent->setCursorImage(id, image, scale, offset); } |