summaryrefslogtreecommitdiffhomepage
path: root/src/srp/fw-ec/kbd-sc-cb.c.gsp
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-11 05:15:20 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-11 05:15:20 +0200
commitbda44e93541fa478abf3ce4b3461f026a90fa8cb (patch)
treea62a7e1d456effe914a77b45f66485c3e8bfd92d /src/srp/fw-ec/kbd-sc-cb.c.gsp
parentced3ed9ddde25614bbc9777a5d546eee2a44a2e0 (diff)
Move the site from HTML to GSP
Diffstat (limited to 'src/srp/fw-ec/kbd-sc-cb.c.gsp')
-rw-r--r--src/srp/fw-ec/kbd-sc-cb.c.gsp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/srp/fw-ec/kbd-sc-cb.c.gsp b/src/srp/fw-ec/kbd-sc-cb.c.gsp
new file mode 100644
index 0000000..fa03466
--- /dev/null
+++ b/src/srp/fw-ec/kbd-sc-cb.c.gsp
@@ -0,0 +1,6 @@
+@span .c-cmt {-/* “make_code” is the scancode. “pressed” is a boolean that is true if this is a}
+ @span .c-cmt {-keydown event, and false if it’s a keyup. */}
+
+r = @span .c-fn {-my_handler_function}(make_code, pressed);
+@span .c-kw {-if} (r != @span .c-pp {-EC_SUCCESS})
+ @span .c-kw {-return} r;