joystick-demo: missing iota

Joe Groff 2010-05-02 01:25:46 -07:00
parent 9d10175f8e
commit bae6b1fcdc
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ TUPLE: joystick-demo-gadget < pack axis raxis controller buttons alarm ;
<axis-gadget> [ >>raxis ] [ add-gadget-with-border ] bi-curry bi* ;
:: (add-button-gadgets) ( gadget shelf -- )
gadget controller>> read-controller buttons>> length [
gadget controller>> read-controller buttons>> length iota [
number>string [ drop ] <border-button>
shelf over add-gadget drop
] map gadget (>>buttons) ;