diff tests/test_gltf.nim @ 1306:7be3628298f5

did: reworked locked mouse
author sam <sam@basx.dev>
date Wed, 07 Aug 2024 20:58:11 +0700
parents 21c4e598d820
children 385dbd68a947
line wrap: on
line diff
--- a/tests/test_gltf.nim	Wed Aug 07 19:09:03 2024 +0700
+++ b/tests/test_gltf.nim	Wed Aug 07 20:58:11 2024 +0700
@@ -158,8 +158,8 @@
     let dt = ((getMonoTime() - lastT).inNanoseconds().int / 1_000_000_000).float32
     lastT = getMonoTime()
 
-    camYaw  -= mouseMove().x / 1000
-    camPitch -= mouseMove().y / 1000
+    camYaw  += mouseMove().x.float32 / 1000'f32
+    camPitch += mouseMove().y.float32 / 1000'f32
     var
       forward = 0'f32
       sideward = 0'f32