close-game-input ( -- )
Game controller input
Prev:open-game-input ( -- )
Next:with-game-input ( quot -- )


Vocabulary
game.input

Word description
Closes the game input interface, releasing any allocated resources. Once this word is called, any remaining controller objects are invalid.

See also
open-game-input, with-game-input, game-input-opened?

Definition
USING: game.input.private kernel math namespaces ;

IN: game.input

: close-game-input ( -- )
game-input-opened
[ dup zero? [ game-input-not-open ] when 1 - ]
change-global game-input-opened?
[ (close-game-input) reset-game-input ] unless ;