record-controller ( controller-state value -- )


Vocabulary
game.input.iokit

Inputs
controller-statean object
valuean object


Outputs
None

Definition


: 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 ;