]> gitweb.factorcode.org Git - factor.git/commitdiff
joystick-demo: missing iota
authorJoe Groff <arcata@gmail.com>
Sun, 2 May 2010 08:25:46 +0000 (01:25 -0700)
committerJoe Groff <arcata@gmail.com>
Sun, 2 May 2010 08:25:46 +0000 (01:25 -0700)
extra/joystick-demo/joystick-demo.factor

index 05440c8ae459d61320009a6e7a21bee9e382386e..63814dfbf8c6d2c550c4e971d670cec28a1615b5 100644 (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) ;