]> gitweb.factorcode.org Git - factor.git/commitdiff
Add iota call in game.input.dinput fill-mouse-state.
authorerikc <erikcharlebois@gmail.com>
Fri, 22 Jan 2010 02:39:23 +0000 (18:39 -0800)
committererikc <erikcharlebois@gmail.com>
Fri, 22 Jan 2010 02:39:23 +0000 (18:39 -0800)
basis/game/input/dinput/dinput.factor

index d3540a99a9619571d76f6a84abe6f22dfb6ade77..e2c1fda75934280d392c8b286787c364f9e112ae 100755 (executable)
@@ -314,7 +314,7 @@ CONSTANT: pov-values
     } case ;
 
 : fill-mouse-state ( buffer count -- state )
-    [ +mouse-state+ get ] 2dip swap [ nth (fill-mouse-state) ] curry each ;
+    iota [ +mouse-state+ get ] 2dip swap [ nth (fill-mouse-state) ] curry each ;
 
 : get-device-state ( device DIJOYSTATE2 -- )
     [ dup IDirectInputDevice8W::Poll ole32-error ] dip