record-mouse ( mouse-state value -- )


Vocabulary
game.input.iokit

Inputs
mouse-statean object
valuean object


Outputs
None

Definition


: record-mouse ( mouse-state value -- )
dup IOHIDValueGetElement {
{ [ dup button? ] [ record-button ] }
{
[ dup axis? ]
[
{
{ ~quotation~ ~quotation~ }
{ ~quotation~ ~quotation~ }
{ ~quotation~ ~quotation~ }
{ ~quotation~ ~quotation~ }
[ 3drop ]
} cond
]
}
[ 3drop ]
} cond ;