From 234a47f69f0957bf3e3d268749b01e112d53bb6c Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 14 Nov 2023 10:03:19 +0100 Subject: Move /srp to /blog --- src/blog/fw-ec/kbd-sc-cb.c.gsp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/blog/fw-ec/kbd-sc-cb.c.gsp (limited to 'src/blog/fw-ec/kbd-sc-cb.c.gsp') diff --git a/src/blog/fw-ec/kbd-sc-cb.c.gsp b/src/blog/fw-ec/kbd-sc-cb.c.gsp new file mode 100644 index 0000000..31524de --- /dev/null +++ b/src/blog/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; -- cgit v1.2.3