aboutsummaryrefslogtreecommitdiff
path: root/src/inputmap.scm
diff options
context:
space:
mode:
authorGene Pasquet <dev@etenil.net>2025-12-21 19:45:14 +0000
committerGene Pasquet <dev@etenil.net>2025-12-24 22:36:41 +0000
commit1d28f3556a957b4099f12abd4d4645f17f1df3e8 (patch)
tree3192966c12c1daa174864ab26b45f4d0d90f02bc /src/inputmap.scm
parentb8c88dd712cba2f7cef6b277d7c36b12eb5f154a (diff)
Build input-state map
Diffstat (limited to 'src/inputmap.scm')
-rw-r--r--src/inputmap.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/inputmap.scm b/src/inputmap.scm
new file mode 100644
index 0000000..5328e35
--- /dev/null
+++ b/src/inputmap.scm
@@ -0,0 +1,14 @@
+(module inputmap
+*
+(import scheme
+ defstruct
+ (prefix sdl2 "sdl2:"))
+
+(define-syntax defkeymap
+ (syntax-rules ()
+ ((defkeymap name
+ (state (key ...)) ...)
+ (define name ))))
+
+
+)