]> gitweb.factorcode.org Git - factor.git/commitdiff
oops. got the game-input reference counting backward. also, let go of the mouse state...
authorJoe Groff <arcata@gmail.com>
Fri, 8 May 2009 22:22:04 +0000 (17:22 -0500)
committerJoe Groff <arcata@gmail.com>
Fri, 8 May 2009 22:22:04 +0000 (17:22 -0500)
extra/game-input/game-input.factor
extra/game-input/iokit/iokit.factor

index ccf5bd635b2cfec0a8cb73a2f281ce792aed246c..922906df483ffac80a4d7a029433b9c20a3c84c9 100755 (executable)
@@ -55,7 +55,7 @@ ERROR: game-input-not-open ;
     game-input-opened? [
         (close-game-input) 
         reset-game-input
-    ] when ;
+    ] unless ;
 
 : with-game-input ( quot -- )
     open-game-input [ close-game-input ] [ ] cleanup ; inline
index 0cc8b5d51f0cda6164194f38b1bfda7adc6250f6..de1529f8df6568b18933b049471717e4bf5c2e9e 100755 (executable)
@@ -304,6 +304,7 @@ M: iokit-game-input-backend (close-game-input)
             f
         ] change-global
         f +keyboard-state+ set-global
+        f +mouse-state+ set-global
         f +controller-states+ set-global
     ] when ;