summaryrefslogtreecommitdiffhomepage
path: root/src/srp/fw-ec/kbd-sc-cb.c.html
blob: 34b7f8d8813f4ab9ddc0d8ca0eed7679a097cd19 (plain) (blame)
1
2
3
4
5
6
<span class="c-cmt">/* “make_code” is the scancode.  “pressed” is a boolean that is true if this is a</span>
<span class="c-cmt">   keydown event, and false if it’s a keyup. */</span>

r = <span class="c-fn">my_handler_function</span>(make_code, pressed);
<span class="c-kw">if</span> (r != <span class="c-pp">EC_SUCCESS</span>)
	<span class="c-kw">return</span> r;