summaryrefslogtreecommitdiffhomepage
path: root/src/srp/fw-ec/kbd-sc-cb.c.html
blob: 6fffdc5d7e20484a495768cbf3a090e605cecfee (plain) (blame)
1
2
3
4
5
6
7
<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><span class="c-cmt"> */</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>