Handbook
Glossary
get-controllers ( -- sequence )
Game controller input
Prev:
with-game-input ( quot -- )
Next:
find-controller-products ( product-id -- sequence )
Vocabulary
game
.
input
Inputs
None
Outputs
sequence
A
sequence
of
controller
s
Word description
Returns a
sequence
of
controller
objects representing the currently connected game controllers. The order of the controller objects in the sequence is not significant or guaranteed to be stable between calls to
get-controllers
.
Definition
IN:
game.input
HOOK:
get-controllers
game-input-backend
( -- sequence )
Methods
USING:
assocs
game.input
game.input.iokit
kernel
namespaces
sequences
;
M:
iokit-game-input-backend
get-controllers
+controller-states+
get-global
keys
[
controller
boa
]
map
;