Handbook
Glossary
<joystick-demo-gadget> ( controller -- gadget )
Vocabulary
game
.
input
.
demos
.
joysticks
Inputs
controller
an
object
Outputs
gadget
an
object
Definition
USING:
accessors
kernel
ui.gadgets
ui.gadgets.packs
;
IN:
game.input.demos.joysticks
:
<joystick-demo-gadget>
( controller -- gadget )
joystick-demo-gadget
new
{
0 1
}
>>orientation
swap
add-controller-label
<shelf>
add-axis-gadget
add-raxis-gadget
add-gadget
<pile>
add-button-gadgets
add-gadget
;