summaryrefslogtreecommitdiffhomepage
path: root/src/blog/fw-ec/kbd-sc-cb.c.gsp
blob: 31524deebe56abad45dab3a93b03103c0334587c (plain) (blame)
1
2
3
4
5
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;