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