aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/world/input/keyboard.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-08-24 05:23:45 -0400
committerEduardo Julian2021-08-24 05:23:45 -0400
commit36303d6cb2ce3ab9e36d045b9516c997bd461862 (patch)
treeb9d2f1495143054d61d9af129f36833624db9dac /stdlib/source/library/lux/world/input/keyboard.lux
parentec1f31b5a1492d5e0ab260397291d4449483bbd9 (diff)
Outsourced the syntax for labelled type definitions to macros.
Diffstat (limited to 'stdlib/source/library/lux/world/input/keyboard.lux')
-rw-r--r--stdlib/source/library/lux/world/input/keyboard.lux5
1 files changed, 3 insertions, 2 deletions
diff --git a/stdlib/source/library/lux/world/input/keyboard.lux b/stdlib/source/library/lux/world/input/keyboard.lux
index 4b3127c18..e33e8c4a7 100644
--- a/stdlib/source/library/lux/world/input/keyboard.lux
+++ b/stdlib/source/library/lux/world/input/keyboard.lux
@@ -100,8 +100,9 @@
(type: .public Press
{#.doc (example "A key-press for a key.")}
- {#pressed? Bit
- #input Key})
+ (Record
+ {#pressed? Bit
+ #input Key}))
(template [<bit> <name>]
[(def: .public (<name> key)