Android key layout map

Source: Internet
Author: User

Details post: http://www.kandroid.org/android_pdk/keymaps_keyboard_input.html

 

Key layout maps are installed in/system/usr/keylayoutAnd
/data/usr/keylayout
.

 

Key layout maps are stored on the device as UTF-8 text files and have the following characteristics:

  • Comments: The pound symbol (#) denotes a comment and everything after the pound symbol on a line is ignored.
  • Whitespace: All empty lines are ignored.
  • Key definitions: key definitions follow the syntaxkey SCANCODE KEYCODE [FLAGS...], Where
    SCANCODEIs a number,KEYCODEIs defined in your specific keylayout file (android.keylayout.xxx), And potential
    FLAGSAre defined as follows:

    • Shift: while pressed, the shift key modifier is set
    • ALT: while pressed, the Alt key modifier is set
    • Caps: while pressed, the Caps Lock key modifier is set
    • Wake: When this key is pressed While the device is asleep, the device will wake up and the key event gets sent to the app.
    • Wake_dropped: When this key is pressed While the device is asleep, the device will wake up and the key event does not get sent to the app.

In ICS, generic. KL will be used if no specific keypad layout file, *. KL file name shocould be the same with this input driver name, or generic. KL will be the target.

Related Article

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.