2021-03-23 12:43:48 +01:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2013-02-05 20:02:12 +01:00
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
2021-03-23 12:43:48 +01:00
< meta name = "generator" content = "Doxygen 1.8.17" / >
2020-11-18 20:17:17 +01:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2013-02-17 01:37:13 +01:00
< title > USB Host Shield 2.0: hidboot.cpp Source File< / title >
2013-02-05 20:02:12 +01:00
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
2019-08-31 18:18:58 +02:00
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
2013-02-05 20:02:12 +01:00
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
2013-02-05 22:39:56 +01:00
< link href = "imageStyle.css" rel = "stylesheet" type = "text/css" / >
2013-02-05 20:02:12 +01:00
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
2019-08-31 18:18:58 +02:00
< td id = "projectalign" style = "padding-left: 0.5em;" >
2013-02-17 01:37:13 +01:00
< div id = "projectname" > USB Host Shield 2.0
2013-02-05 20:02:12 +01:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2021-03-23 12:43:48 +01:00
<!-- Generated by Doxygen 1.8.17 -->
2013-02-05 20:02:12 +01:00
< script type = "text/javascript" >
2021-03-23 12:43:48 +01:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
2013-02-05 20:02:12 +01:00
var searchBox = new SearchBox("searchBox", "search",false,'Search');
2021-03-23 12:43:48 +01:00
/* @license-end */
2013-02-05 20:02:12 +01:00
< / script >
2020-11-18 20:17:17 +01:00
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
2021-03-23 12:43:48 +01:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
2020-11-18 20:17:17 +01:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2021-03-23 12:43:48 +01:00
/* @license-end */< / script >
2020-11-18 20:17:17 +01:00
< div id = "main-nav" > < / div >
2018-10-13 16:56:59 +02:00
< / div > <!-- top -->
2013-02-05 20:02:12 +01:00
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
2019-08-31 18:18:58 +02:00
< / div >
2013-02-05 20:02:12 +01:00
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div class = "header" >
< div class = "headertitle" >
< div class = "title" > hidboot.cpp< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2021-03-23 12:43:48 +01:00
< a href = "hidboot_8cpp.html" > Go to the documentation of this file.< / a > < div class = "fragment" > < div class = "line" > < a name = "l00001" > < / a > < span class = "lineno" > 1< / span >   < span class = "comment" > /* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.< / span > < / div >
< div class = "line" > < a name = "l00002" > < / a > < span class = "lineno" > 2< / span >   < span class = "comment" > < / span > < / div >
< div class = "line" > < a name = "l00003" > < / a > < span class = "lineno" > 3< / span >   < span class = "comment" > This software may be distributed and modified under the terms of the GNU< / span > < / div >
< div class = "line" > < a name = "l00004" > < / a > < span class = "lineno" > 4< / span >   < span class = "comment" > General Public License version 2 (GPL2) as published by the Free Software< / span > < / div >
< div class = "line" > < a name = "l00005" > < / a > < span class = "lineno" > 5< / span >   < span class = "comment" > Foundation and appearing in the file GPL2.TXT included in the packaging of< / span > < / div >
< div class = "line" > < a name = "l00006" > < / a > < span class = "lineno" > 6< / span >   < span class = "comment" > this file. Please note that GPL2 Section 2[b] requires that all works based< / span > < / div >
< div class = "line" > < a name = "l00007" > < / a > < span class = "lineno" > 7< / span >   < span class = "comment" > on this software must also be made publicly available under the terms of< / span > < / div >
< div class = "line" > < a name = "l00008" > < / a > < span class = "lineno" > 8< / span >   < span class = "comment" > the GPL2 (" Copyleft" ).< / span > < / div >
< div class = "line" > < a name = "l00009" > < / a > < span class = "lineno" > 9< / span >   < span class = "comment" > < / span > < / div >
< div class = "line" > < a name = "l00010" > < / a > < span class = "lineno" > 10< / span >   < span class = "comment" > Contact information< / span > < / div >
< div class = "line" > < a name = "l00011" > < / a > < span class = "lineno" > 11< / span >   < span class = "comment" > -------------------< / span > < / div >
< div class = "line" > < a name = "l00012" > < / a > < span class = "lineno" > 12< / span >   < span class = "comment" > < / span > < / div >
< div class = "line" > < a name = "l00013" > < / a > < span class = "lineno" > 13< / span >   < span class = "comment" > Circuits At Home, LTD< / span > < / div >
< div class = "line" > < a name = "l00014" > < / a > < span class = "lineno" > 14< / span >   < span class = "comment" > Web : http://www.circuitsathome.com< / span > < / div >
< div class = "line" > < a name = "l00015" > < / a > < span class = "lineno" > 15< / span >   < span class = "comment" > e-mail : support@circuitsathome.com< / span > < / div >
< div class = "line" > < a name = "l00016" > < / a > < span class = "lineno" > 16< / span >   < span class = "comment" > */< / span > < / div >
< div class = "line" > < a name = "l00017" > < / a > < span class = "lineno" > 17< / span >   < span class = "preprocessor" > #include " < a class = "code" href = "hidboot_8h.html" > hidboot.h< / a > " < / span > < / div >
< div class = "line" > < a name = "l00018" > < / a > < span class = "lineno" > 18< / span >   < / div >
< div class = "line" > < a name = "l00019" > < / a > < span class = "lineno" > < a class = "line" href = "class_mouse_report_parser.html#aed02196a692f8b633fbbebc76eefd4a1" > 19< / a > < / span >   < span class = "keywordtype" > void< / span > < a class = "code" href = "class_mouse_report_parser.html#aed02196a692f8b633fbbebc76eefd4a1" > MouseReportParser::Parse< / a > (< a class = "code" href = "class_u_s_b_h_i_d.html" > USBHID< / a > *hid __attribute__((unused)), < span class = "keywordtype" > bool< / span > is_rpt_id __attribute__((unused)), uint8_t len __attribute__((unused)), uint8_t *buf) {< / div >
< div class = "line" > < a name = "l00020" > < / a > < span class = "lineno" > 20< / span >   < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html" > MOUSEINFO< / a > *pmi = (< a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html" > MOUSEINFO< / a > *)buf;< / div >
< div class = "line" > < a name = "l00021" > < / a > < span class = "lineno" > 21< / span >   < span class = "comment" > // Future:< / span > < / div >
< div class = "line" > < a name = "l00022" > < / a > < span class = "lineno" > 22< / span >   < span class = "comment" > // bool event;< / span > < / div >
< div class = "line" > < a name = "l00023" > < / a > < span class = "lineno" > 23< / span >   < / div >
< div class = "line" > < a name = "l00024" > < / a > < span class = "lineno" > 24< / span >   < span class = "preprocessor" > #if 0< / span > < / div >
< div class = "line" > < a name = "l00025" > < / a > < span class = "lineno" > 25< / span >   < span class = "keywordflow" > if< / span > (prevState.mouseInfo.bmLeftButton == 0 & & pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a848ceb3b38f0dc9e09a83612c1fa89ff" > bmLeftButton< / a > == 1)< / div >
< div class = "line" > < a name = "l00026" > < / a > < span class = "lineno" > 26< / span >   < a class = "code" href = "class_mouse_report_parser.html#accfab93f9a2ba8fa0998437dcca44086" > OnLeftButtonDown< / a > (pmi);< / div >
< div class = "line" > < a name = "l00027" > < / a > < span class = "lineno" > 27< / span >   < / div >
< div class = "line" > < a name = "l00028" > < / a > < span class = "lineno" > 28< / span >   < span class = "keywordflow" > if< / span > (prevState.mouseInfo.bmLeftButton == 1 & & pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a848ceb3b38f0dc9e09a83612c1fa89ff" > bmLeftButton< / a > == 0)< / div >
< div class = "line" > < a name = "l00029" > < / a > < span class = "lineno" > 29< / span >   < a class = "code" href = "class_mouse_report_parser.html#a6e640919bf67e70c66f1dcbee5798e45" > OnLeftButtonUp< / a > (pmi);< / div >
< div class = "line" > < a name = "l00030" > < / a > < span class = "lineno" > 30< / span >   < / div >
< div class = "line" > < a name = "l00031" > < / a > < span class = "lineno" > 31< / span >   < span class = "keywordflow" > if< / span > (prevState.mouseInfo.bmRightButton == 0 & & pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a07f604e1dffc0a72fa28e94a5094ebbe" > bmRightButton< / a > == 1)< / div >
< div class = "line" > < a name = "l00032" > < / a > < span class = "lineno" > 32< / span >   < a class = "code" href = "class_mouse_report_parser.html#a6884349e6b2de0cbfedf3e1a77c23870" > OnRightButtonDown< / a > (pmi);< / div >
< div class = "line" > < a name = "l00033" > < / a > < span class = "lineno" > 33< / span >   < / div >
< div class = "line" > < a name = "l00034" > < / a > < span class = "lineno" > 34< / span >   < span class = "keywordflow" > if< / span > (prevState.mouseInfo.bmRightButton == 1 & & pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a07f604e1dffc0a72fa28e94a5094ebbe" > bmRightButton< / a > == 0)< / div >
< div class = "line" > < a name = "l00035" > < / a > < span class = "lineno" > 35< / span >   < a class = "code" href = "class_mouse_report_parser.html#a1bdfee565073cd8b77cbeb9e184c174f" > OnRightButtonUp< / a > (pmi);< / div >
< div class = "line" > < a name = "l00036" > < / a > < span class = "lineno" > 36< / span >   < / div >
< div class = "line" > < a name = "l00037" > < / a > < span class = "lineno" > 37< / span >   < span class = "keywordflow" > if< / span > (prevState.mouseInfo.bmMiddleButton == 0 & & pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a7fb48a7cb68cfc8db2bb8838694c0b51" > bmMiddleButton< / a > == 1)< / div >
< div class = "line" > < a name = "l00038" > < / a > < span class = "lineno" > 38< / span >   < a class = "code" href = "class_mouse_report_parser.html#ad1c06ea106608bd3dcb5c90ecc487ac9" > OnMiddleButtonDown< / a > (pmi);< / div >
< div class = "line" > < a name = "l00039" > < / a > < span class = "lineno" > 39< / span >   < / div >
< div class = "line" > < a name = "l00040" > < / a > < span class = "lineno" > 40< / span >   < span class = "keywordflow" > if< / span > (prevState.mouseInfo.bmMiddleButton == 1 & & pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a7fb48a7cb68cfc8db2bb8838694c0b51" > bmMiddleButton< / a > == 0)< / div >
< div class = "line" > < a name = "l00041" > < / a > < span class = "lineno" > 41< / span >   < a class = "code" href = "class_mouse_report_parser.html#a7512c9a85581aa4be52a780d7c91f655" > OnMiddleButtonUp< / a > (pmi);< / div >
< div class = "line" > < a name = "l00042" > < / a > < span class = "lineno" > 42< / span >   < / div >
< div class = "line" > < a name = "l00043" > < / a > < span class = "lineno" > 43< / span >   < span class = "keywordflow" > if< / span > (prevState.mouseInfo.dX != pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a8b67db1c54e5db9782a0b5b707dcf9db" > dX< / a > || prevState.mouseInfo.dY != pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#ae7192500776548f5c6868cc37eaaabb2" > dY< / a > )< / div >
< div class = "line" > < a name = "l00044" > < / a > < span class = "lineno" > 44< / span >   < a class = "code" href = "class_mouse_report_parser.html#a3e231baff6196df63dbad9a44f4945a7" > OnMouseMove< / a > (pmi);< / div >
< div class = "line" > < a name = "l00045" > < / a > < span class = "lineno" > 45< / span >   < / div >
< div class = "line" > < a name = "l00046" > < / a > < span class = "lineno" > 46< / span >   < span class = "keywordflow" > if< / span > (len > < span class = "keyword" > sizeof< / span > (< a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html" > MOUSEINFO< / a > ))< / div >
< div class = "line" > < a name = "l00047" > < / a > < span class = "lineno" > 47< / span >   < span class = "keywordflow" > for< / span > (uint8_t i = 0; i< < span class = "keyword" > sizeof< / span > (< a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html" > MOUSEINFO< / a > ); i++)< / div >
< div class = "line" > < a name = "l00048" > < / a > < span class = "lineno" > 48< / span >   prevState.bInfo[i] = buf[i];< / div >
< div class = "line" > < a name = "l00049" > < / a > < span class = "lineno" > 49< / span >   #< span class = "keywordflow" > else< / span > < / div >
< div class = "line" > < a name = "l00050" > < / a > < span class = "lineno" > 50< / span >   < span class = "comment" > //< / span > < / div >
< div class = "line" > < a name = "l00051" > < / a > < span class = "lineno" > 51< / span >   < span class = "comment" > // Optimization idea:< / span > < / div >
< div class = "line" > < a name = "l00052" > < / a > < span class = "lineno" > 52< / span >   < span class = "comment" > //< / span > < / div >
< div class = "line" > < a name = "l00053" > < / a > < span class = "lineno" > 53< / span >   < span class = "comment" > // 1: Don' t pass the structure on every event. Buttons would not need it.< / span > < / div >
< div class = "line" > < a name = "l00054" > < / a > < span class = "lineno" > 54< / span >   < span class = "comment" > // 2: Only pass x/y values in the movement routine.< / span > < / div >
< div class = "line" > < a name = "l00055" > < / a > < span class = "lineno" > 55< / span >   < span class = "comment" > //< / span > < / div >
< div class = "line" > < a name = "l00056" > < / a > < span class = "lineno" > 56< / span >   < span class = "comment" > // These two changes (with the ones I have made) will save extra flash.< / span > < / div >
< div class = "line" > < a name = "l00057" > < / a > < span class = "lineno" > 57< / span >   < span class = "comment" > // The only " bad" thing is that it could break old code.< / span > < / div >
< div class = "line" > < a name = "l00058" > < / a > < span class = "lineno" > 58< / span >   < span class = "comment" > //< / span > < / div >
< div class = "line" > < a name = "l00059" > < / a > < span class = "lineno" > 59< / span >   < span class = "comment" > // Future thoughts:< / span > < / div >
< div class = "line" > < a name = "l00060" > < / a > < span class = "lineno" > 60< / span >   < span class = "comment" > //< / span > < / div >
< div class = "line" > < a name = "l00061" > < / a > < span class = "lineno" > 61< / span >   < span class = "comment" > // The extra space gained can be used for a generic mouse event that can be called< / span > < / div >
< div class = "line" > < a name = "l00062" > < / a > < span class = "lineno" > 62< / span >   < span class = "comment" > // when there are _ANY_ changes. This one you _MAY_ want to pass everything, however the< / span > < / div >
< div class = "line" > < a name = "l00063" > < / a > < span class = "lineno" > 63< / span >   < span class = "comment" > // sketch could already have noted these facts to support drag/drop scroll wheel stuff, etc.< / span > < / div >
< div class = "line" > < a name = "l00064" > < / a > < span class = "lineno" > 64< / span >   < span class = "comment" > //< / span > < / div >
< div class = "line" > < a name = "l00065" > < / a > < span class = "lineno" > 65< / span >   < / div >
< div class = "line" > < a name = "l00066" > < / a > < span class = "lineno" > 66< / span >   < span class = "comment" > // Why do we need to pass the structure for buttons?< / span > < / div >
< div class = "line" > < a name = "l00067" > < / a > < span class = "lineno" > 67< / span >   < span class = "comment" > // The function call not enough of a hint for what is happening?< / span > < / div >
< div class = "line" > < a name = "l00068" > < / a > < span class = "lineno" > 68< / span >   < span class = "keywordflow" > if< / span > (prevState.mouseInfo.bmLeftButton != pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a848ceb3b38f0dc9e09a83612c1fa89ff" > bmLeftButton< / a > ) {< / div >
< div class = "line" > < a name = "l00069" > < / a > < span class = "lineno" > 69< / span >   < span class = "keywordflow" > if< / span > (pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a848ceb3b38f0dc9e09a83612c1fa89ff" > bmLeftButton< / a > ) {< / div >
< div class = "line" > < a name = "l00070" > < / a > < span class = "lineno" > 70< / span >   < a class = "code" href = "class_mouse_report_parser.html#accfab93f9a2ba8fa0998437dcca44086" > OnLeftButtonDown< / a > (pmi);< / div >
< div class = "line" > < a name = "l00071" > < / a > < span class = "lineno" > 71< / span >   } < span class = "keywordflow" > else< / span > {< / div >
< div class = "line" > < a name = "l00072" > < / a > < span class = "lineno" > 72< / span >   < a class = "code" href = "class_mouse_report_parser.html#a6e640919bf67e70c66f1dcbee5798e45" > OnLeftButtonUp< / a > (pmi);< / div >
< div class = "line" > < a name = "l00073" > < / a > < span class = "lineno" > 73< / span >   }< / div >
< div class = "line" > < a name = "l00074" > < / a > < span class = "lineno" > 74< / span >   < span class = "comment" > // Future:< / span > < / div >
< div class = "line" > < a name = "l00075" > < / a > < span class = "lineno" > 75< / span >   < span class = "comment" > // event = true;< / span > < / div >
< div class = "line" > < a name = "l00076" > < / a > < span class = "lineno" > 76< / span >   }< / div >
< div class = "line" > < a name = "l00077" > < / a > < span class = "lineno" > 77< / span >   < / div >
< div class = "line" > < a name = "l00078" > < / a > < span class = "lineno" > 78< / span >   < span class = "keywordflow" > if< / span > (prevState.mouseInfo.bmRightButton != pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a07f604e1dffc0a72fa28e94a5094ebbe" > bmRightButton< / a > ) {< / div >
< div class = "line" > < a name = "l00079" > < / a > < span class = "lineno" > 79< / span >   < span class = "keywordflow" > if< / span > (pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a07f604e1dffc0a72fa28e94a5094ebbe" > bmRightButton< / a > ) {< / div >
< div class = "line" > < a name = "l00080" > < / a > < span class = "lineno" > 80< / span >   < a class = "code" href = "class_mouse_report_parser.html#a6884349e6b2de0cbfedf3e1a77c23870" > OnRightButtonDown< / a > (pmi);< / div >
< div class = "line" > < a name = "l00081" > < / a > < span class = "lineno" > 81< / span >   } < span class = "keywordflow" > else< / span > {< / div >
< div class = "line" > < a name = "l00082" > < / a > < span class = "lineno" > 82< / span >   < a class = "code" href = "class_mouse_report_parser.html#a1bdfee565073cd8b77cbeb9e184c174f" > OnRightButtonUp< / a > (pmi);< / div >
< div class = "line" > < a name = "l00083" > < / a > < span class = "lineno" > 83< / span >   }< / div >
< div class = "line" > < a name = "l00084" > < / a > < span class = "lineno" > 84< / span >   < span class = "comment" > // Future:< / span > < / div >
< div class = "line" > < a name = "l00085" > < / a > < span class = "lineno" > 85< / span >   < span class = "comment" > // event = true;< / span > < / div >
< div class = "line" > < a name = "l00086" > < / a > < span class = "lineno" > 86< / span >   }< / div >
< div class = "line" > < a name = "l00087" > < / a > < span class = "lineno" > 87< / span >   < / div >
< div class = "line" > < a name = "l00088" > < / a > < span class = "lineno" > 88< / span >   < span class = "keywordflow" > if< / span > (prevState.mouseInfo.bmMiddleButton != pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a7fb48a7cb68cfc8db2bb8838694c0b51" > bmMiddleButton< / a > ) {< / div >
< div class = "line" > < a name = "l00089" > < / a > < span class = "lineno" > 89< / span >   < span class = "keywordflow" > if< / span > (pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a7fb48a7cb68cfc8db2bb8838694c0b51" > bmMiddleButton< / a > ) {< / div >
< div class = "line" > < a name = "l00090" > < / a > < span class = "lineno" > 90< / span >   < a class = "code" href = "class_mouse_report_parser.html#ad1c06ea106608bd3dcb5c90ecc487ac9" > OnMiddleButtonDown< / a > (pmi);< / div >
< div class = "line" > < a name = "l00091" > < / a > < span class = "lineno" > 91< / span >   } < span class = "keywordflow" > else< / span > {< / div >
< div class = "line" > < a name = "l00092" > < / a > < span class = "lineno" > 92< / span >   < a class = "code" href = "class_mouse_report_parser.html#a7512c9a85581aa4be52a780d7c91f655" > OnMiddleButtonUp< / a > (pmi);< / div >
< div class = "line" > < a name = "l00093" > < / a > < span class = "lineno" > 93< / span >   }< / div >
< div class = "line" > < a name = "l00094" > < / a > < span class = "lineno" > 94< / span >   < span class = "comment" > // Future:< / span > < / div >
< div class = "line" > < a name = "l00095" > < / a > < span class = "lineno" > 95< / span >   < span class = "comment" > // event = true;< / span > < / div >
< div class = "line" > < a name = "l00096" > < / a > < span class = "lineno" > 96< / span >   }< / div >
< div class = "line" > < a name = "l00097" > < / a > < span class = "lineno" > 97< / span >   < / div >
< div class = "line" > < a name = "l00098" > < / a > < span class = "lineno" > 98< / span >   < span class = "comment" > //< / span > < / div >
< div class = "line" > < a name = "l00099" > < / a > < span class = "lineno" > 99< / span >   < span class = "comment" > // Scroll wheel(s), are not part of the spec, but we could support it.< / span > < / div >
< div class = "line" > < a name = "l00100" > < / a > < span class = "lineno" > 100< / span >   < span class = "comment" > // Logitech wireless keyboard and mouse combo reports scroll wheel in byte 4< / span > < / div >
< div class = "line" > < a name = "l00101" > < / a > < span class = "lineno" > 101< / span >   < span class = "comment" > // We wouldn' t even need to save this information.< / span > < / div >
< div class = "line" > < a name = "l00102" > < / a > < span class = "lineno" > 102< / span >   < span class = "comment" > //if(len > 3) {< / span > < / div >
< div class = "line" > < a name = "l00103" > < / a > < span class = "lineno" > 103< / span >   < span class = "comment" > //}< / span > < / div >
< div class = "line" > < a name = "l00104" > < / a > < span class = "lineno" > 104< / span >   < span class = "comment" > //< / span > < / div >
< div class = "line" > < a name = "l00105" > < / a > < span class = "lineno" > 105< / span >   < / div >
< div class = "line" > < a name = "l00106" > < / a > < span class = "lineno" > 106< / span >   < span class = "comment" > // Mice only report motion when they actually move!< / span > < / div >
< div class = "line" > < a name = "l00107" > < / a > < span class = "lineno" > 107< / span >   < span class = "comment" > // Why not just pass the x/y values to simplify things??< / span > < / div >
< div class = "line" > < a name = "l00108" > < / a > < span class = "lineno" > 108< / span >   < span class = "keywordflow" > if< / span > (pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#a8b67db1c54e5db9782a0b5b707dcf9db" > dX< / a > || pmi-> < a class = "code" href = "struct_m_o_u_s_e_i_n_f_o.html#ae7192500776548f5c6868cc37eaaabb2" > dY< / a > ) {< / div >
< div class = "line" > < a name = "l00109" > < / a > < span class = "lineno" > 109< / span >   < a class = "code" href = "class_mouse_report_parser.html#a3e231baff6196df63dbad9a44f4945a7" > OnMouseMove< / a > (pmi);< / div >
< div class = "line" > < a name = "l00110" > < / a > < span class = "lineno" > 110< / span >   < span class = "comment" > // Future:< / span > < / div >
< div class = "line" > < a name = "l00111" > < / a > < span class = "lineno" > 111< / span >   < span class = "comment" > // event = true;< / span > < / div >
< div class = "line" > < a name = "l00112" > < / a > < span class = "lineno" > 112< / span >   }< / div >
< div class = "line" > < a name = "l00113" > < / a > < span class = "lineno" > 113< / span >   < / div >
< div class = "line" > < a name = "l00114" > < / a > < span class = "lineno" > 114< / span >   < span class = "comment" > //< / span > < / div >
< div class = "line" > < a name = "l00115" > < / a > < span class = "lineno" > 115< / span >   < span class = "comment" > // Future:< / span > < / div >
< div class = "line" > < a name = "l00116" > < / a > < span class = "lineno" > 116< / span >   < span class = "comment" > // Provide a callback that operates on the gathered events from above.< / span > < / div >
< div class = "line" > < a name = "l00117" > < / a > < span class = "lineno" > 117< / span >   < span class = "comment" > //< / span > < / div >
< div class = "line" > < a name = "l00118" > < / a > < span class = "lineno" > 118< / span >   < span class = "comment" > // if(event) OnMouse();< / span > < / div >
< div class = "line" > < a name = "l00119" > < / a > < span class = "lineno" > 119< / span >   < span class = "comment" > //< / span > < / div >
< div class = "line" > < a name = "l00120" > < / a > < span class = "lineno" > 120< / span >   < / div >
< div class = "line" > < a name = "l00121" > < / a > < span class = "lineno" > 121< / span >   < span class = "comment" > // Only the first byte matters (buttons). We do NOT need to save position info.< / span > < / div >
< div class = "line" > < a name = "l00122" > < / a > < span class = "lineno" > 122< / span >   prevState.bInfo[0] = buf[0];< / div >
< div class = "line" > < a name = "l00123" > < / a > < span class = "lineno" > 123< / span >   < span class = "preprocessor" > #endif< / span > < / div >
< div class = "line" > < a name = "l00124" > < / a > < span class = "lineno" > 124< / span >   < / div >
< div class = "line" > < a name = "l00125" > < / a > < span class = "lineno" > 125< / span >   };< / div >
< div class = "line" > < a name = "l00126" > < / a > < span class = "lineno" > 126< / span >   < / div >
< div class = "line" > < a name = "l00127" > < / a > < span class = "lineno" > < a class = "line" href = "class_keyboard_report_parser.html#a122bfa9d4baa9f85010aea8245c2295c" > 127< / a > < / span >   < span class = "keywordtype" > void< / span > < a class = "code" href = "class_keyboard_report_parser.html#a122bfa9d4baa9f85010aea8245c2295c" > KeyboardReportParser::Parse< / a > (< a class = "code" href = "class_u_s_b_h_i_d.html" > USBHID< / a > *hid, < span class = "keywordtype" > bool< / span > is_rpt_id __attribute__((unused)), uint8_t len __attribute__((unused)), uint8_t *buf) {< / div >
< div class = "line" > < a name = "l00128" > < / a > < span class = "lineno" > 128< / span >   < span class = "comment" > // On error - return< / span > < / div >
< div class = "line" > < a name = "l00129" > < / a > < span class = "lineno" > 129< / span >   < span class = "keywordflow" > if< / span > (buf[2] == 1)< / div >
< div class = "line" > < a name = "l00130" > < / a > < span class = "lineno" > 130< / span >   < span class = "keywordflow" > return< / span > ;< / div >
< div class = "line" > < a name = "l00131" > < / a > < span class = "lineno" > 131< / span >   < / div >
< div class = "line" > < a name = "l00132" > < / a > < span class = "lineno" > 132< / span >   < span class = "comment" > //KBDINFO *pki = (KBDINFO*)buf;< / span > < / div >
< div class = "line" > < a name = "l00133" > < / a > < span class = "lineno" > 133< / span >   < / div >
< div class = "line" > < a name = "l00134" > < / a > < span class = "lineno" > 134< / span >   < span class = "comment" > // provide event for changed control key state< / span > < / div >
< div class = "line" > < a name = "l00135" > < / a > < span class = "lineno" > 135< / span >   < span class = "keywordflow" > if< / span > (< a class = "code" href = "class_keyboard_report_parser.html#a174ff23eba7448ed995831bbdec8ea4e" > prevState< / a > .bInfo[0x00] != buf[0x00]) {< / div >
< div class = "line" > < a name = "l00136" > < / a > < span class = "lineno" > 136< / span >   < a class = "code" href = "class_keyboard_report_parser.html#ae8ce494271e8536f4bdc089db51bc67e" > OnControlKeysChanged< / a > (< a class = "code" href = "class_keyboard_report_parser.html#a174ff23eba7448ed995831bbdec8ea4e" > prevState< / a > .bInfo[0x00], buf[0x00]);< / div >
< div class = "line" > < a name = "l00137" > < / a > < span class = "lineno" > 137< / span >   }< / div >
< div class = "line" > < a name = "l00138" > < / a > < span class = "lineno" > 138< / span >   < / div >
< div class = "line" > < a name = "l00139" > < / a > < span class = "lineno" > 139< / span >   < span class = "keywordflow" > for< / span > (uint8_t i = 2; i < 8; i++) {< / div >
< div class = "line" > < a name = "l00140" > < / a > < span class = "lineno" > 140< / span >   < span class = "keywordtype" > bool< / span > down = < span class = "keyword" > false< / span > ;< / div >
< div class = "line" > < a name = "l00141" > < / a > < span class = "lineno" > 141< / span >   < span class = "keywordtype" > bool< / span > up = < span class = "keyword" > false< / span > ;< / div >
< div class = "line" > < a name = "l00142" > < / a > < span class = "lineno" > 142< / span >   < / div >
< div class = "line" > < a name = "l00143" > < / a > < span class = "lineno" > 143< / span >   < span class = "keywordflow" > for< / span > (uint8_t j = 2; j < 8; j++) {< / div >
< div class = "line" > < a name = "l00144" > < / a > < span class = "lineno" > 144< / span >   < span class = "keywordflow" > if< / span > (buf[i] == < a class = "code" href = "class_keyboard_report_parser.html#a174ff23eba7448ed995831bbdec8ea4e" > prevState< / a > .bInfo[j] & & buf[i] != 1)< / div >
< div class = "line" > < a name = "l00145" > < / a > < span class = "lineno" > 145< / span >   down = < span class = "keyword" > true< / span > ;< / div >
< div class = "line" > < a name = "l00146" > < / a > < span class = "lineno" > 146< / span >   < span class = "keywordflow" > if< / span > (buf[j] == < a class = "code" href = "class_keyboard_report_parser.html#a174ff23eba7448ed995831bbdec8ea4e" > prevState< / a > .bInfo[i] & & < a class = "code" href = "class_keyboard_report_parser.html#a174ff23eba7448ed995831bbdec8ea4e" > prevState< / a > .bInfo[i] != 1)< / div >
< div class = "line" > < a name = "l00147" > < / a > < span class = "lineno" > 147< / span >   up = < span class = "keyword" > true< / span > ;< / div >
< div class = "line" > < a name = "l00148" > < / a > < span class = "lineno" > 148< / span >   }< / div >
< div class = "line" > < a name = "l00149" > < / a > < span class = "lineno" > 149< / span >   < span class = "keywordflow" > if< / span > (!down) {< / div >
< div class = "line" > < a name = "l00150" > < / a > < span class = "lineno" > 150< / span >   < a class = "code" href = "class_keyboard_report_parser.html#afde38237f909416f77e81a5b5df8da7d" > HandleLockingKeys< / a > (hid, buf[i]);< / div >
< div class = "line" > < a name = "l00151" > < / a > < span class = "lineno" > 151< / span >   < a class = "code" href = "class_keyboard_report_parser.html#af855e596bbbb9755535f6e69f4ca2305" > OnKeyDown< / a > (*buf, buf[i]);< / div >
< div class = "line" > < a name = "l00152" > < / a > < span class = "lineno" > 152< / span >   }< / div >
< div class = "line" > < a name = "l00153" > < / a > < span class = "lineno" > 153< / span >   < span class = "keywordflow" > if< / span > (!up)< / div >
< div class = "line" > < a name = "l00154" > < / a > < span class = "lineno" > 154< / span >   < a class = "code" href = "class_keyboard_report_parser.html#a57710d31e5379db14779f960f5c714b2" > OnKeyUp< / a > (< a class = "code" href = "class_keyboard_report_parser.html#a174ff23eba7448ed995831bbdec8ea4e" > prevState< / a > .bInfo[0], < a class = "code" href = "class_keyboard_report_parser.html#a174ff23eba7448ed995831bbdec8ea4e" > prevState< / a > .bInfo[i]);< / div >
< div class = "line" > < a name = "l00155" > < / a > < span class = "lineno" > 155< / span >   }< / div >
< div class = "line" > < a name = "l00156" > < / a > < span class = "lineno" > 156< / span >   < span class = "keywordflow" > for< / span > (uint8_t i = 0; i < 8; i++)< / div >
< div class = "line" > < a name = "l00157" > < / a > < span class = "lineno" > 157< / span >   < a class = "code" href = "class_keyboard_report_parser.html#a174ff23eba7448ed995831bbdec8ea4e" > prevState< / a > .bInfo[i] = buf[i];< / div >
< div class = "line" > < a name = "l00158" > < / a > < span class = "lineno" > 158< / span >   };< / div >
< div class = "line" > < a name = "l00159" > < / a > < span class = "lineno" > 159< / span >   < / div >
< div class = "line" > < a name = "l00160" > < / a > < span class = "lineno" > 160< / span >   < span class = "keyword" > const< / span > uint8_t KeyboardReportParser::numKeys[10] PROGMEM = {< span class = "charliteral" > ' !' < / span > , < span class = "charliteral" > ' @' < / span > , < span class = "charliteral" > ' #' < / span > , < span class = "charliteral" > ' $' < / span > , < span class = "charliteral" > ' %' < / span > , < span class = "charliteral" > ' ^' < / span > , < span class = "charliteral" > ' & ' < / span > , < span class = "charliteral" > ' *' < / span > , < span class = "charliteral" > ' (' < / span > , < span class = "charliteral" > ' )' < / span > };< / div >
< div class = "line" > < a name = "l00161" > < / a > < span class = "lineno" > 161< / span >   < span class = "keyword" > const< / span > uint8_t KeyboardReportParser::symKeysUp[12] PROGMEM = {< span class = "charliteral" > ' _' < / span > , < span class = "charliteral" > ' +' < / span > , < span class = "charliteral" > ' {' < / span > , < span class = "charliteral" > ' }' < / span > , < span class = "charliteral" > ' |' < / span > , < span class = "charliteral" > ' ~' < / span > , < span class = "charliteral" > ' :' < / span > , < span class = "charliteral" > ' " ' < / span > , < span class = "charliteral" > ' ~' < / span > , < span class = "charliteral" > ' < ' < / span > , < span class = "charliteral" > ' > ' < / span > , < span class = "charliteral" > ' ?' < / span > };< / div >
< div class = "line" > < a name = "l00162" > < / a > < span class = "lineno" > 162< / span >   < span class = "keyword" > const< / span > uint8_t KeyboardReportParser::symKeysLo[12] PROGMEM = {< span class = "charliteral" > ' -' < / span > , < span class = "charliteral" > ' =' < / span > , < span class = "charliteral" > ' [' < / span > , < span class = "charliteral" > ' ]' < / span > , < span class = "charliteral" > ' \\' < / span > , < span class = "charliteral" > ' ' < / span > , < span class = "charliteral" > ' ;' < / span > , < span class = "charliteral" > ' \' ' < / span > , < span class = "charliteral" > ' `' < / span > , < span class = "charliteral" > ' ,' < / span > , < span class = "charliteral" > ' .' < / span > , < span class = "charliteral" > ' /' < / span > };< / div >
< div class = "line" > < a name = "l00163" > < / a > < span class = "lineno" > 163< / span >   < span class = "keyword" > const< / span > uint8_t KeyboardReportParser::padKeys[5] PROGMEM = {< span class = "charliteral" > ' /' < / span > , < span class = "charliteral" > ' *' < / span > , < span class = "charliteral" > ' -' < / span > , < span class = "charliteral" > ' +' < / span > , < span class = "charliteral" > ' \r' < / span > };< / div >
< div class = "line" > < a name = "l00164" > < / a > < span class = "lineno" > 164< / span >   < / div >
< div class = "line" > < a name = "l00165" > < / a > < span class = "lineno" > < a class = "line" href = "class_keyboard_report_parser.html#aa21e9230ae4c2f068c404a9c2909a1f3" > 165< / a > < / span >   uint8_t < a class = "code" href = "class_keyboard_report_parser.html#aa21e9230ae4c2f068c404a9c2909a1f3" > KeyboardReportParser::OemToAscii< / a > (uint8_t mod, uint8_t key) {< / div >
< div class = "line" > < a name = "l00166" > < / a > < span class = "lineno" > 166< / span >   uint8_t shift = (mod & 0x22);< / div >
< div class = "line" > < a name = "l00167" > < / a > < span class = "lineno" > 167< / span >   < / div >
< div class = "line" > < a name = "l00168" > < / a > < span class = "lineno" > 168< / span >   < span class = "comment" > // [a-z]< / span > < / div >
< div class = "line" > < a name = "l00169" > < / a > < span class = "lineno" > 169< / span >   < span class = "keywordflow" > if< / span > (< a class = "code" href = "macros_8h.html#ad1bf62861b3f4199c42a93bf6b2181d0" > VALUE_WITHIN< / a > (key, 0x04, 0x1d)) {< / div >
< div class = "line" > < a name = "l00170" > < / a > < span class = "lineno" > 170< / span >   < span class = "comment" > // Upper case letters< / span > < / div >
< div class = "line" > < a name = "l00171" > < / a > < span class = "lineno" > 171< / span >   < span class = "keywordflow" > if< / span > ((< a class = "code" href = "class_keyboard_report_parser.html#a71d99f1391dc3b0fc3d65b591f74fe6d" > kbdLockingKeys< / a > .kbdLeds.bmCapsLock == 0 & & shift) ||< / div >
< div class = "line" > < a name = "l00172" > < / a > < span class = "lineno" > 172< / span >   (< a class = "code" href = "class_keyboard_report_parser.html#a71d99f1391dc3b0fc3d65b591f74fe6d" > kbdLockingKeys< / a > .kbdLeds.bmCapsLock == 1 & & shift == 0))< / div >
< div class = "line" > < a name = "l00173" > < / a > < span class = "lineno" > 173< / span >   < span class = "keywordflow" > return< / span > (key - 4 + < span class = "charliteral" > ' A' < / span > );< / div >
< div class = "line" > < a name = "l00174" > < / a > < span class = "lineno" > 174< / span >   < / div >
< div class = "line" > < a name = "l00175" > < / a > < span class = "lineno" > 175< / span >   < span class = "comment" > // Lower case letters< / span > < / div >
< div class = "line" > < a name = "l00176" > < / a > < span class = "lineno" > 176< / span >   < span class = "keywordflow" > else< / span > < / div >
< div class = "line" > < a name = "l00177" > < / a > < span class = "lineno" > 177< / span >   < span class = "keywordflow" > return< / span > (key - 4 + < span class = "charliteral" > ' a' < / span > );< / div >
< div class = "line" > < a name = "l00178" > < / a > < span class = "lineno" > 178< / span >   }< span class = "comment" > // Numbers< / span > < / div >
< div class = "line" > < a name = "l00179" > < / a > < span class = "lineno" > 179< / span >   < span class = "keywordflow" > else< / span > < span class = "keywordflow" > if< / span > (< a class = "code" href = "macros_8h.html#ad1bf62861b3f4199c42a93bf6b2181d0" > VALUE_WITHIN< / a > (key, 0x1e, 0x27)) {< / div >
< div class = "line" > < a name = "l00180" > < / a > < span class = "lineno" > 180< / span >   < span class = "keywordflow" > if< / span > (shift)< / div >
< div class = "line" > < a name = "l00181" > < / a > < span class = "lineno" > 181< / span >   < span class = "keywordflow" > return< / span > ((uint8_t)< a class = "code" href = "version__helper_8h.html#a48c60b057902adf805797f183286728d" > pgm_read_byte< / a > (& < a class = "code" href = "class_keyboard_report_parser.html#a963cbe34cb4061dff6262ce4b39a43e2" > getNumKeys< / a > ()[key - 0x1e]));< / div >
< div class = "line" > < a name = "l00182" > < / a > < span class = "lineno" > 182< / span >   < span class = "keywordflow" > else< / span > < / div >
< div class = "line" > < a name = "l00183" > < / a > < span class = "lineno" > 183< / span >   < span class = "keywordflow" > return< / span > ((key == < a class = "code" href = "hidboot_8h.html#a2458c33386b5c5d5bd2fc0544c9ff70c" > UHS_HID_BOOT_KEY_ZERO< / a > ) ? < span class = "charliteral" > ' 0' < / span > : key - 0x1e + < span class = "charliteral" > ' 1' < / span > );< / div >
< div class = "line" > < a name = "l00184" > < / a > < span class = "lineno" > 184< / span >   }< span class = "comment" > // Keypad Numbers< / span > < / div >
< div class = "line" > < a name = "l00185" > < / a > < span class = "lineno" > 185< / span >   < span class = "keywordflow" > else< / span > < span class = "keywordflow" > if< / span > (< a class = "code" href = "macros_8h.html#ad1bf62861b3f4199c42a93bf6b2181d0" > VALUE_WITHIN< / a > (key, 0x59, 0x61)) {< / div >
< div class = "line" > < a name = "l00186" > < / a > < span class = "lineno" > 186< / span >   < span class = "keywordflow" > if< / span > (< a class = "code" href = "class_keyboard_report_parser.html#a71d99f1391dc3b0fc3d65b591f74fe6d" > kbdLockingKeys< / a > .kbdLeds.bmNumLock == 1)< / div >
< div class = "line" > < a name = "l00187" > < / a > < span class = "lineno" > 187< / span >   < span class = "keywordflow" > return< / span > (key - 0x59 + < span class = "charliteral" > ' 1' < / span > );< / div >
< div class = "line" > < a name = "l00188" > < / a > < span class = "lineno" > 188< / span >   } < span class = "keywordflow" > else< / span > < span class = "keywordflow" > if< / span > (< a class = "code" href = "macros_8h.html#ad1bf62861b3f4199c42a93bf6b2181d0" > VALUE_WITHIN< / a > (key, 0x2d, 0x38))< / div >
< div class = "line" > < a name = "l00189" > < / a > < span class = "lineno" > 189< / span >   < span class = "keywordflow" > return< / span > ((shift) ? (uint8_t)< a class = "code" href = "version__helper_8h.html#a48c60b057902adf805797f183286728d" > pgm_read_byte< / a > (& < a class = "code" href = "class_keyboard_report_parser.html#a2df76a06fee8df45a3d0850459887427" > getSymKeysUp< / a > ()[key - 0x2d]) : (uint8_t)< a class = "code" href = "version__helper_8h.html#a48c60b057902adf805797f183286728d" > pgm_read_byte< / a > (& < a class = "code" href = "class_keyboard_report_parser.html#a14a44500a5c22cb7e5374e4e334e0255" > getSymKeysLo< / a > ()[key - 0x2d]));< / div >
< div class = "line" > < a name = "l00190" > < / a > < span class = "lineno" > 190< / span >   < span class = "keywordflow" > else< / span > < span class = "keywordflow" > if< / span > (< a class = "code" href = "macros_8h.html#ad1bf62861b3f4199c42a93bf6b2181d0" > VALUE_WITHIN< / a > (key, 0x54, 0x58))< / div >
< div class = "line" > < a name = "l00191" > < / a > < span class = "lineno" > 191< / span >   < span class = "keywordflow" > return< / span > (uint8_t)< a class = "code" href = "version__helper_8h.html#a48c60b057902adf805797f183286728d" > pgm_read_byte< / a > (& < a class = "code" href = "class_keyboard_report_parser.html#afa488405e7ba3ce5249064f38bb8912c" > getPadKeys< / a > ()[key - 0x54]);< / div >
< div class = "line" > < a name = "l00192" > < / a > < span class = "lineno" > 192< / span >   < span class = "keywordflow" > else< / span > {< / div >
< div class = "line" > < a name = "l00193" > < / a > < span class = "lineno" > 193< / span >   < span class = "keywordflow" > switch< / span > (key) {< / div >
< div class = "line" > < a name = "l00194" > < / a > < span class = "lineno" > 194< / span >   < span class = "keywordflow" > case< / span > < a class = "code" href = "hidboot_8h.html#abedef4cc17add7fafbbcda43b442964b" > UHS_HID_BOOT_KEY_SPACE< / a > : < span class = "keywordflow" > return< / span > (0x20);< / div >
< div class = "line" > < a name = "l00195" > < / a > < span class = "lineno" > 195< / span >   < span class = "keywordflow" > case< / span > < a class = "code" href = "hidboot_8h.html#a42f71f6d2b7e4f543826af0234834237" > UHS_HID_BOOT_KEY_ENTER< / a > : < span class = "keywordflow" > return< / span > (< span class = "charliteral" > ' \r' < / span > ); < span class = "comment" > // Carriage return (0x0D)< / span > < / div >
< div class = "line" > < a name = "l00196" > < / a > < span class = "lineno" > 196< / span >   < span class = "keywordflow" > case< / span > < a class = "code" href = "hidboot_8h.html#a69193f2a5138ebecc6819e21e6b31c45" > UHS_HID_BOOT_KEY_ZERO2< / a > : < span class = "keywordflow" > return< / span > ((< a class = "code" href = "class_keyboard_report_parser.html#a71d99f1391dc3b0fc3d65b591f74fe6d" > kbdLockingKeys< / a > .kbdLeds.bmNumLock == 1) ? < span class = "charliteral" > ' 0' < / span > : 0);< / div >
< div class = "line" > < a name = "l00197" > < / a > < span class = "lineno" > 197< / span >   < span class = "keywordflow" > case< / span > < a class = "code" href = "hidboot_8h.html#a70520f779398f17618bbf6848472eecd" > UHS_HID_BOOT_KEY_PERIOD< / a > : < span class = "keywordflow" > return< / span > ((< a class = "code" href = "class_keyboard_report_parser.html#a71d99f1391dc3b0fc3d65b591f74fe6d" > kbdLockingKeys< / a > .kbdLeds.bmNumLock == 1) ? < span class = "charliteral" > ' .' < / span > : 0);< / div >
< div class = "line" > < a name = "l00198" > < / a > < span class = "lineno" > 198< / span >   }< / div >
< div class = "line" > < a name = "l00199" > < / a > < span class = "lineno" > 199< / span >   }< / div >
< div class = "line" > < a name = "l00200" > < / a > < span class = "lineno" > 200< / span >   < span class = "keywordflow" > return< / span > ( 0);< / div >
< div class = "line" > < a name = "l00201" > < / a > < span class = "lineno" > 201< / span >   }< / div >
2013-02-05 20:02:12 +01:00
< / div > <!-- fragment --> < / div > <!-- contents -->
2021-03-23 12:43:48 +01:00
< div class = "ttc" id = "ahidboot_8h_html_a70520f779398f17618bbf6848472eecd" > < div class = "ttname" > < a href = "hidboot_8h.html#a70520f779398f17618bbf6848472eecd" > UHS_HID_BOOT_KEY_PERIOD< / a > < / div > < div class = "ttdeci" > #define UHS_HID_BOOT_KEY_PERIOD< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00029" > hidboot.h:29< / a > < / div > < / div >
< div class = "ttc" id = "astruct_m_o_u_s_e_i_n_f_o_html" > < div class = "ttname" > < a href = "struct_m_o_u_s_e_i_n_f_o.html" > MOUSEINFO< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00039" > hidboot.h:39< / a > < / div > < / div >
< div class = "ttc" id = "aclass_mouse_report_parser_html_a6884349e6b2de0cbfedf3e1a77c23870" > < div class = "ttname" > < a href = "class_mouse_report_parser.html#a6884349e6b2de0cbfedf3e1a77c23870" > MouseReportParser::OnRightButtonDown< / a > < / div > < div class = "ttdeci" > virtual void OnRightButtonDown(MOUSEINFO *mi)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00075" > hidboot.h:75< / a > < / div > < / div >
< div class = "ttc" id = "aclass_mouse_report_parser_html_a7512c9a85581aa4be52a780d7c91f655" > < div class = "ttname" > < a href = "class_mouse_report_parser.html#a7512c9a85581aa4be52a780d7c91f655" > MouseReportParser::OnMiddleButtonUp< / a > < / div > < div class = "ttdeci" > virtual void OnMiddleButtonUp(MOUSEINFO *mi)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00078" > hidboot.h:78< / a > < / div > < / div >
< div class = "ttc" id = "astruct_m_o_u_s_e_i_n_f_o_html_a848ceb3b38f0dc9e09a83612c1fa89ff" > < div class = "ttname" > < a href = "struct_m_o_u_s_e_i_n_f_o.html#a848ceb3b38f0dc9e09a83612c1fa89ff" > MOUSEINFO::bmLeftButton< / a > < / div > < div class = "ttdeci" > uint8_t bmLeftButton< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00042" > hidboot.h:42< / a > < / div > < / div >
< div class = "ttc" id = "aclass_mouse_report_parser_html_accfab93f9a2ba8fa0998437dcca44086" > < div class = "ttname" > < a href = "class_mouse_report_parser.html#accfab93f9a2ba8fa0998437dcca44086" > MouseReportParser::OnLeftButtonDown< / a > < / div > < div class = "ttdeci" > virtual void OnLeftButtonDown(MOUSEINFO *mi)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00069" > hidboot.h:69< / a > < / div > < / div >
< div class = "ttc" id = "aclass_keyboard_report_parser_html_aa21e9230ae4c2f068c404a9c2909a1f3" > < div class = "ttname" > < a href = "class_keyboard_report_parser.html#aa21e9230ae4c2f068c404a9c2909a1f3" > KeyboardReportParser::OemToAscii< / a > < / div > < div class = "ttdeci" > uint8_t OemToAscii(uint8_t mod, uint8_t key)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8cpp_source.html#l00165" > hidboot.cpp:165< / a > < / div > < / div >
< div class = "ttc" id = "aclass_keyboard_report_parser_html_a57710d31e5379db14779f960f5c714b2" > < div class = "ttname" > < a href = "class_keyboard_report_parser.html#a57710d31e5379db14779f960f5c714b2" > KeyboardReportParser::OnKeyUp< / a > < / div > < div class = "ttdeci" > virtual void OnKeyUp(uint8_t mod, uint8_t key)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00180" > hidboot.h:180< / a > < / div > < / div >
< div class = "ttc" id = "aclass_mouse_report_parser_html_ad1c06ea106608bd3dcb5c90ecc487ac9" > < div class = "ttname" > < a href = "class_mouse_report_parser.html#ad1c06ea106608bd3dcb5c90ecc487ac9" > MouseReportParser::OnMiddleButtonDown< / a > < / div > < div class = "ttdeci" > virtual void OnMiddleButtonDown(MOUSEINFO *mi)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00081" > hidboot.h:81< / a > < / div > < / div >
< div class = "ttc" id = "ahidboot_8h_html_a69193f2a5138ebecc6819e21e6b31c45" > < div class = "ttname" > < a href = "hidboot_8h.html#a69193f2a5138ebecc6819e21e6b31c45" > UHS_HID_BOOT_KEY_ZERO2< / a > < / div > < div class = "ttdeci" > #define UHS_HID_BOOT_KEY_ZERO2< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00028" > hidboot.h:28< / a > < / div > < / div >
< div class = "ttc" id = "aclass_keyboard_report_parser_html_a2df76a06fee8df45a3d0850459887427" > < div class = "ttname" > < a href = "class_keyboard_report_parser.html#a2df76a06fee8df45a3d0850459887427" > KeyboardReportParser::getSymKeysUp< / a > < / div > < div class = "ttdeci" > virtual const uint8_t * getSymKeysUp()< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00187" > hidboot.h:187< / a > < / div > < / div >
< div class = "ttc" id = "astruct_m_o_u_s_e_i_n_f_o_html_a8b67db1c54e5db9782a0b5b707dcf9db" > < div class = "ttname" > < a href = "struct_m_o_u_s_e_i_n_f_o.html#a8b67db1c54e5db9782a0b5b707dcf9db" > MOUSEINFO::dX< / a > < / div > < div class = "ttdeci" > int8_t dX< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00047" > hidboot.h:47< / a > < / div > < / div >
< div class = "ttc" id = "astruct_m_o_u_s_e_i_n_f_o_html_a07f604e1dffc0a72fa28e94a5094ebbe" > < div class = "ttname" > < a href = "struct_m_o_u_s_e_i_n_f_o.html#a07f604e1dffc0a72fa28e94a5094ebbe" > MOUSEINFO::bmRightButton< / a > < / div > < div class = "ttdeci" > uint8_t bmRightButton< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00043" > hidboot.h:43< / a > < / div > < / div >
< div class = "ttc" id = "ahidboot_8h_html_a2458c33386b5c5d5bd2fc0544c9ff70c" > < div class = "ttname" > < a href = "hidboot_8h.html#a2458c33386b5c5d5bd2fc0544c9ff70c" > UHS_HID_BOOT_KEY_ZERO< / a > < / div > < div class = "ttdeci" > #define UHS_HID_BOOT_KEY_ZERO< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00022" > hidboot.h:22< / a > < / div > < / div >
< div class = "ttc" id = "amacros_8h_html_ad1bf62861b3f4199c42a93bf6b2181d0" > < div class = "ttname" > < a href = "macros_8h.html#ad1bf62861b3f4199c42a93bf6b2181d0" > VALUE_WITHIN< / a > < / div > < div class = "ttdeci" > #define VALUE_WITHIN(v, l, h)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "macros_8h_source.html#l00035" > macros.h:35< / a > < / div > < / div >
< div class = "ttc" id = "aclass_keyboard_report_parser_html_a122bfa9d4baa9f85010aea8245c2295c" > < div class = "ttname" > < a href = "class_keyboard_report_parser.html#a122bfa9d4baa9f85010aea8245c2295c" > KeyboardReportParser::Parse< / a > < / div > < div class = "ttdeci" > void Parse(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8cpp_source.html#l00127" > hidboot.cpp:127< / a > < / div > < / div >
< div class = "ttc" id = "ahidboot_8h_html_abedef4cc17add7fafbbcda43b442964b" > < div class = "ttname" > < a href = "hidboot_8h.html#abedef4cc17add7fafbbcda43b442964b" > UHS_HID_BOOT_KEY_SPACE< / a > < / div > < div class = "ttdeci" > #define UHS_HID_BOOT_KEY_SPACE< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00024" > hidboot.h:24< / a > < / div > < / div >
< div class = "ttc" id = "ahidboot_8h_html" > < div class = "ttname" > < a href = "hidboot_8h.html" > hidboot.h< / a > < / div > < / div >
< div class = "ttc" id = "astruct_m_o_u_s_e_i_n_f_o_html_ae7192500776548f5c6868cc37eaaabb2" > < div class = "ttname" > < a href = "struct_m_o_u_s_e_i_n_f_o.html#ae7192500776548f5c6868cc37eaaabb2" > MOUSEINFO::dY< / a > < / div > < div class = "ttdeci" > int8_t dY< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00048" > hidboot.h:48< / a > < / div > < / div >
< div class = "ttc" id = "aclass_keyboard_report_parser_html_a71d99f1391dc3b0fc3d65b591f74fe6d" > < div class = "ttname" > < a href = "class_keyboard_report_parser.html#a71d99f1391dc3b0fc3d65b591f74fe6d" > KeyboardReportParser::kbdLockingKeys< / a > < / div > < div class = "ttdeci" > union KeyboardReportParser::@18 kbdLockingKeys< / div > < / div >
< div class = "ttc" id = "aclass_mouse_report_parser_html_a1bdfee565073cd8b77cbeb9e184c174f" > < div class = "ttname" > < a href = "class_mouse_report_parser.html#a1bdfee565073cd8b77cbeb9e184c174f" > MouseReportParser::OnRightButtonUp< / a > < / div > < div class = "ttdeci" > virtual void OnRightButtonUp(MOUSEINFO *mi)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00072" > hidboot.h:72< / a > < / div > < / div >
< div class = "ttc" id = "aclass_keyboard_report_parser_html_afde38237f909416f77e81a5b5df8da7d" > < div class = "ttname" > < a href = "class_keyboard_report_parser.html#afde38237f909416f77e81a5b5df8da7d" > KeyboardReportParser::HandleLockingKeys< / a > < / div > < div class = "ttdeci" > virtual uint8_t HandleLockingKeys(USBHID *hid, uint8_t key)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00151" > hidboot.h:151< / a > < / div > < / div >
< div class = "ttc" id = "aclass_keyboard_report_parser_html_a963cbe34cb4061dff6262ce4b39a43e2" > < div class = "ttname" > < a href = "class_keyboard_report_parser.html#a963cbe34cb4061dff6262ce4b39a43e2" > KeyboardReportParser::getNumKeys< / a > < / div > < div class = "ttdeci" > virtual const uint8_t * getNumKeys()< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00183" > hidboot.h:183< / a > < / div > < / div >
< div class = "ttc" id = "aversion__helper_8h_html_a48c60b057902adf805797f183286728d" > < div class = "ttname" > < a href = "version__helper_8h.html#a48c60b057902adf805797f183286728d" > pgm_read_byte< / a > < / div > < div class = "ttdeci" > #define pgm_read_byte(addr)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "version__helper_8h_source.html#l00161" > version_helper.h:161< / a > < / div > < / div >
< div class = "ttc" id = "aclass_mouse_report_parser_html_aed02196a692f8b633fbbebc76eefd4a1" > < div class = "ttname" > < a href = "class_mouse_report_parser.html#aed02196a692f8b633fbbebc76eefd4a1" > MouseReportParser::Parse< / a > < / div > < div class = "ttdeci" > void Parse(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8cpp_source.html#l00019" > hidboot.cpp:19< / a > < / div > < / div >
< div class = "ttc" id = "ahidboot_8h_html_a42f71f6d2b7e4f543826af0234834237" > < div class = "ttname" > < a href = "hidboot_8h.html#a42f71f6d2b7e4f543826af0234834237" > UHS_HID_BOOT_KEY_ENTER< / a > < / div > < div class = "ttdeci" > #define UHS_HID_BOOT_KEY_ENTER< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00023" > hidboot.h:23< / a > < / div > < / div >
< div class = "ttc" id = "aclass_mouse_report_parser_html_a6e640919bf67e70c66f1dcbee5798e45" > < div class = "ttname" > < a href = "class_mouse_report_parser.html#a6e640919bf67e70c66f1dcbee5798e45" > MouseReportParser::OnLeftButtonUp< / a > < / div > < div class = "ttdeci" > virtual void OnLeftButtonUp(MOUSEINFO *mi)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00066" > hidboot.h:66< / a > < / div > < / div >
< div class = "ttc" id = "aclass_keyboard_report_parser_html_a174ff23eba7448ed995831bbdec8ea4e" > < div class = "ttname" > < a href = "class_keyboard_report_parser.html#a174ff23eba7448ed995831bbdec8ea4e" > KeyboardReportParser::prevState< / a > < / div > < div class = "ttdeci" > union KeyboardReportParser::@17 prevState< / div > < / div >
< div class = "ttc" id = "aclass_u_s_b_h_i_d_html" > < div class = "ttname" > < a href = "class_u_s_b_h_i_d.html" > USBHID< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "usbhid_8h_source.html#l00143" > usbhid.h:143< / a > < / div > < / div >
< div class = "ttc" id = "aclass_keyboard_report_parser_html_ae8ce494271e8536f4bdc089db51bc67e" > < div class = "ttname" > < a href = "class_keyboard_report_parser.html#ae8ce494271e8536f4bdc089db51bc67e" > KeyboardReportParser::OnControlKeysChanged< / a > < / div > < div class = "ttdeci" > virtual void OnControlKeysChanged(uint8_t before, uint8_t after)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00174" > hidboot.h:174< / a > < / div > < / div >
< div class = "ttc" id = "aclass_keyboard_report_parser_html_afa488405e7ba3ce5249064f38bb8912c" > < div class = "ttname" > < a href = "class_keyboard_report_parser.html#afa488405e7ba3ce5249064f38bb8912c" > KeyboardReportParser::getPadKeys< / a > < / div > < div class = "ttdeci" > virtual const uint8_t * getPadKeys()< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00195" > hidboot.h:195< / a > < / div > < / div >
< div class = "ttc" id = "aclass_keyboard_report_parser_html_af855e596bbbb9755535f6e69f4ca2305" > < div class = "ttname" > < a href = "class_keyboard_report_parser.html#af855e596bbbb9755535f6e69f4ca2305" > KeyboardReportParser::OnKeyDown< / a > < / div > < div class = "ttdeci" > virtual void OnKeyDown(uint8_t mod, uint8_t key)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00177" > hidboot.h:177< / a > < / div > < / div >
< div class = "ttc" id = "aclass_keyboard_report_parser_html_a14a44500a5c22cb7e5374e4e334e0255" > < div class = "ttname" > < a href = "class_keyboard_report_parser.html#a14a44500a5c22cb7e5374e4e334e0255" > KeyboardReportParser::getSymKeysLo< / a > < / div > < div class = "ttdeci" > virtual const uint8_t * getSymKeysLo()< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00191" > hidboot.h:191< / a > < / div > < / div >
< div class = "ttc" id = "astruct_m_o_u_s_e_i_n_f_o_html_a7fb48a7cb68cfc8db2bb8838694c0b51" > < div class = "ttname" > < a href = "struct_m_o_u_s_e_i_n_f_o.html#a7fb48a7cb68cfc8db2bb8838694c0b51" > MOUSEINFO::bmMiddleButton< / a > < / div > < div class = "ttdeci" > uint8_t bmMiddleButton< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00044" > hidboot.h:44< / a > < / div > < / div >
< div class = "ttc" id = "aclass_mouse_report_parser_html_a3e231baff6196df63dbad9a44f4945a7" > < div class = "ttname" > < a href = "class_mouse_report_parser.html#a3e231baff6196df63dbad9a44f4945a7" > MouseReportParser::OnMouseMove< / a > < / div > < div class = "ttdeci" > virtual void OnMouseMove(MOUSEINFO *mi)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidboot_8h_source.html#l00063" > hidboot.h:63< / a > < / div > < / div >
2013-02-05 20:02:12 +01:00
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
2013-02-17 01:37:13 +01:00
Generated by   < a href = "http://www.doxygen.org/index.html" >
2013-02-05 20:02:12 +01:00
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
2021-03-23 12:43:48 +01:00
< / a > 1.8.17
2013-02-05 20:02:12 +01:00
< / small > < / address >
< / body >
< / html >