Merge branch 'master' of git://factorcode.org/git/factor
commit
f84d5c410b
|
@ -55,7 +55,7 @@ ERROR: game-input-not-open ;
|
||||||
game-input-opened? [
|
game-input-opened? [
|
||||||
(close-game-input)
|
(close-game-input)
|
||||||
reset-game-input
|
reset-game-input
|
||||||
] when ;
|
] unless ;
|
||||||
|
|
||||||
: with-game-input ( quot -- )
|
: with-game-input ( quot -- )
|
||||||
open-game-input [ close-game-input ] [ ] cleanup ; inline
|
open-game-input [ close-game-input ] [ ] cleanup ; inline
|
||||||
|
|
|
@ -304,6 +304,7 @@ M: iokit-game-input-backend (close-game-input)
|
||||||
f
|
f
|
||||||
] change-global
|
] change-global
|
||||||
f +keyboard-state+ set-global
|
f +keyboard-state+ set-global
|
||||||
|
f +mouse-state+ set-global
|
||||||
f +controller-states+ set-global
|
f +controller-states+ set-global
|
||||||
] when ;
|
] when ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue