Handbook
Glossary
record-controller ( controller-state value -- )
Vocabulary
game
.
input
.
iokit
Inputs
controller-state
an
object
value
an
object
Outputs
None
Definition
USING:
combinators
iokit.hid
kernel
;
IN:
game.input.iokit
:
record-controller
( controller-state value -- )
dup
IOHIDValueGetElement
{
{
[
dup
button?
]
[
record-button
]
}
{
[
dup
axis?
]
[
{
{
~quotation~ ~quotation~
}
{
~quotation~ ~quotation~
}
{
~quotation~ ~quotation~
}
{
~quotation~ ~quotation~
}
{
~quotation~ ~quotation~
}
{
~quotation~ ~quotation~
}
{
~quotation~ ~quotation~
}
{
~quotation~ ~quotation~
}
[
3drop
]
}
cond
]
}
[
3drop
]
}
cond
;