Mercurial > games > semicongine
diff semiconginev2/rendering/platform/windows.nim @ 1254:b0f4c8ccd49a
did: stuff to test gltf importer
author | sam <sam@basx.dev> |
---|---|
date | Sat, 27 Jul 2024 20:47:54 +0700 |
parents | a3fa15c25026 |
children | bfb75c934f4e |
line wrap: on
line diff
--- a/semiconginev2/rendering/platform/windows.nim Fri Jul 26 23:39:24 2024 +0700 +++ b/semiconginev2/rendering/platform/windows.nim Sat Jul 27 20:47:54 2024 +0700 @@ -193,6 +193,8 @@ return some(Vec2f([float32(p.x), float32(p.y)])) return none(Vec2f) +proc SetMousePosition*(window: NativeWindow, x, y: int) = + CheckWin32Result SetCursorPos(x, y) proc CreateNativeSurface*(instance: VkInstance, window: NativeWindow): VkSurfaceKHR = assert instance.Valid