oops. got the game-input reference counting backward. also, let go of the mouse state in cocoa backend when closing game-input

db4
Joe Groff 2009-05-08 17:22:04 -05:00
parent 1644d88233
commit 66b1fdd916
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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 ;