oops. got the game-input reference counting backward. also, let go of the mouse state in cocoa backend when closing game-input
parent
1644d88233
commit
66b1fdd916
|
@ -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
|
||||
|
|
|
@ -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 ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue