Android External keyboard buttons.

Source: Internet
Author: User

Android supports the keyboard by default, but the support is not good enough, so we need to modify it based on our own keyboard.

The default configuration path for the android keyboard is SDK/emulator/keymaps.

There are two most important files:

The default keylayout file of Qwerty. KL maps the scancode of the keyboard physical matrix to the system's keycode. This requires us to know our Keyboard Matrix Values in advance. If not provided by the manufacturer, print logs one by one.

 

The file format is provided by many network materials. The following is a simple description.

Key 158 back wake_dropped
Key 230 soft_right wake

 

The key in the first column indicates the start of a valid row, and the comment line starts #.

The second column indicates scancode, which is the matrix scan code value of the keyboard physical device.

The third column indicates the key code keycode in the system, so that the physical keyboard corresponds to the operating system.

The fourth column indicates the Flag Information of the keycode, which is optional and generally has three states.

 

Null, no additional information

When the machine processes the sleep status, wake can wake up and press the button to continue processing.

Wake_dropped: when the machine is in sleep status, it can be awakened, but the key information is discarded.

 

Here is a one-to-one ing relationship. It must be handled according to the keyboard.

 

If it is a regular practice, the corresponding scancode keyboard value will not change in different countries, such as common us keyboards. But sometimes there is no UK matrix and only us is used,

At this time, we need our software to change the scaning between the scancode and keycode. This non-standard approach is not recommended.

 

 

 

Qwerty. KCM default keycharactermap file. The function of this file is to input the displayed characters when processing individual Keys or key combinations. Remember that this is a character, which contains Unicode (utf8) code values. This problem has plagued me for a long time.

Here we will list some common characters. You can refer to their Unicode values and enter them in the total matrix list.

This format is briefly described below:

# Keycode display number base caps FN caps_fn

A' a' 2' a' #'0x00

 

 

Here, the first column of keycode is converted through the scancode of the. KL file.

Keycode provided to the System

Characters displayed on the display keyboard (silk screen)

Number is generally not required

Base does not use the default characters displayed by the key combination

Caps SHIFT + key display characters

FN Alt + key display characters

Caps_fn SHIFT + ALT + key display characters

 

 

Base, caps, FN, and caps_fn can all be expressed in unicode format. For example, you can write

'A', or 0x41.

 

Generally, the keyboard has many key combinations and may encounter various strange characters. Here I will list the following characters. Their Unicode can be passed through

Http://www.unicodemap.org/search.asp? Search =

Copy the characters you need and then query the Unicode code corresponding to the characters.

 

Common Character Set combination:

 

! "# $ % & '() * + ,-. /0 1 2 3 4 5 6 7 8 9 :; <=> @ a B c d e f g h I j k l m n o p q r s t u v w x y z [/] ^ _ 'a B c d e f g h I j k l m n o p q r s t u v w x y z {}~ ¢ £ ¤ ¥ ¥§ A-ˉ ° ± 2 3''' · 1 O áááé ê ì íd ò ó × ú úüy t áá
Aíé **í e ********************************************* please refer to the following link for more information: delta ε θ λ μ e z y when there are already too many other users
There are too many problems between them. There are too many problems between them ‐ --‖ ''" "running ---‖''""‥... ‰ '"Yellow ※※  ̄ ℃ ℉ ℡ I ⅱ ⅲ iv v vi vii viii ix. xⅺ ⅻ I ⅱ iv v vi VII IX. x← → ∈ ∑ ° √ ∝ ∞ ∟ ∶ ∨ ∮ ∶ ~ ∽ ≈ ≌ ≠ ≤ ≤≥≦ ≧ ≮ ≯ ⊙
Please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: when there are already too many other users
Please refer to the following link for more information: please refer to the following link for more information:★☆☉♀♂,. Please refer to the following link for more information: when there are already too many threads, there are already too many threads
Please refer to the following link for more information: please refer to the following link for more information: please refer to the following link for more information: when there are already too many other users
Please refer to the following link for more information: please refer to the following link for more information: square meters of square meters have been used in the production of square meters ︰︱︳︴︵︶︷︸︹︺︻︼︽︾︿﹀﹁﹂﹃﹄﹉﹊﹋﹌﹍﹎﹏﹐﹑﹒﹔﹕﹖! Please try again later ﹗﹙﹚﹛﹜﹝﹞﹟
Too many errors-<> too many errors ﹪﹫! "# $ % & '() * +,-./0 1 2 3 4 5 6 7 8 9:; <=>? @ A B c d e f g h I j k l m n o p q r s t u v w x y z [\] ^ _ 1_a B c d E F G H I j k l m n o p q r s t u v w x y z {| }~ Zookeeper
Zhenshu Special Character
Please refer to the following link for more information: there are two major problems in the future. the four-member Prison team was rejected because of her daughter-in-law's high scalability. She was already in a state-owned state. I was lucky enough to find the best place in China.
There are two major reasons why our staff have been making too many attempts during the entire cycle.
Character combination
, Please wait until then _ Then → ^ o ^ then ^ else __/~ ▄ ︻ ┻ É; ┢ é (* ^ *)

 

 

 

It's not just a keyboard, but a lot of input methods need to handle this action.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.