⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 x699.html

📁 usb develop guide
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN"><HTML><HEAD><TITLE>Configuring extra keys on USB keyboards</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet"><LINKREL="HOME"TITLE="The Linux USB sub-system"HREF="book1.html"><LINKREL="UP"TITLE="Using Linux USB"HREF="c607.html"><LINKREL="PREVIOUS"TITLE="Using Linux USB"HREF="c607.html"><LINKREL="NEXT"TITLE="Communicating with the Handspring Visor"HREF="x716.html"></HEAD><BODY><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">The Linux USB sub-system</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="c607.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 3. Using Linux USB</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="x716.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="AEN699">Configuring extra keys on USB keyboards</A></H1><P>To understand how to configure the additional keys that are provided onsome USB keyboards, it helps to understand they way in which key processingworks under Linux and X.</P><P>The most fundamental level of keyboard processing is a scancode. The USBkeyboard driver pipes scancodes into the normal kernel keyboard driver.Depending on the mode in which the keyboard is operated, these caneither be sent to the application directly (known as scancode or raw mode)or translated using a keyboard mapping table (known as the keymap)before being sent to the application (known as keycode or intepreted mode).</P><P>X uses the raw scancodes, which are known as keycodes in X documentation.These are translated inside the X server to a functional equivalent, knownas a key symbol or keysym using a mapping table, although this is not thesame format and performs a subtly different function. This means thattranslations in console mode and under X are not the same.</P><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN704">Console mode keyboard mappings</A></H2><P>To be completed, but basically you use the <BCLASS="COMMAND">showkey -s</B>to get the raw scancodes, and then use <BCLASS="COMMAND">setkeycodes</B>to modify the keymap or <BCLASS="COMMAND">loadkeys</B> to load a newkeymap. Then you can assign the translated keycode to whatever makes sensefor the application program.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN710">X keyboard mappings</A></H2><P>To be completed, but basically you use the <BCLASS="COMMAND">showkey -s</B>or <BCLASS="COMMAND">xev</B> to get the raw scancodes, and then use<BCLASS="COMMAND">xmodmap</B> to modify the keyboard map.</P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="c607.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="book1.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="x716.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Using Linux USB</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="c607.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Communicating with the Handspring Visor</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -