aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/world/input/keyboard.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-09-03 21:51:30 -0400
committerEduardo Julian2021-09-03 21:51:30 -0400
commit891b1cfc82322f8017f0a4f6b707d6fe52024545 (patch)
tree957429c0a2ad850b3570492deabe054fb2ace63e /stdlib/source/library/lux/world/input/keyboard.lux
parente76add6e6f904677f5c09bb2a66dce283f1b848a (diff)
Unified tuple and record syntax.
Diffstat (limited to 'stdlib/source/library/lux/world/input/keyboard.lux')
-rw-r--r--stdlib/source/library/lux/world/input/keyboard.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/library/lux/world/input/keyboard.lux b/stdlib/source/library/lux/world/input/keyboard.lux
index b22f9b792..b3b64f1d1 100644
--- a/stdlib/source/library/lux/world/input/keyboard.lux
+++ b/stdlib/source/library/lux/world/input/keyboard.lux
@@ -99,14 +99,14 @@
(type: .public Press
(Record
- {#pressed? Bit
- #input Key}))
+ [#pressed? Bit
+ #input Key]))
(template [<bit> <name>]
[(def: .public (<name> key)
(-> Key Press)
- {#pressed? <bit>
- #input key})]
+ [#pressed? <bit>
+ #input key])]
[#0 release]
[#1 press]