Tutorial-Keyboard Scan code

Source: Internet
Author: User

Defined

==============================

each key on the keyboard has two unique values to flag. Why use two values instead of a numeric value? This is because a key can be pressed, or it can be released. When a key is pressed, they produce a unique value, and when a key is released, it also produces a unique value, and we save the values in a table, and by looking at the table we can know which key is being struck and whether it is pressed or released. These values are called keyboard scan codes in the system.

==============================

Scan Code Key

0X011B ESC

0x3b00 F1

0X3C00 F2

0x3d00 F3

0x3e00 F4

0X3F00 F5

0x4000 F6

0x4100 F7

0x4200 F8

0x4300 F9

0x4400 F10

Main keyboard Area:

0x2960 ~

0x0231 1

0x0332 2

0x0433 3

0x0534 4

0x0635 5

0x0736 6

0x0837 7

0x0938 8

0x0a39 9

0x0b30 0

0X0C2D-

0x0d3d =

0X2B5C \

0X0E08 backspace key

0x0f09 Tab

0x1071 Q

0x1177 W

0x1265 E

0x1372 R

0x1474 T

0x1579 y

0x1675 u

0x1769 I

0x186f o

0x1970 P

0x1a5b [

0X1B5D]

0x1e61 A

0x1f73 s

0x2064 D

0x2166 F

0x2267 g

0x2368 h

0X246A J

0x256b K

0x266c L

0x273b;

0x2827 '

0X1C0D Enter

0X2C7A Z

0x2d78 x

0x2e63 C

0x2f76 V

0x3062 b

0x316e N

0x326d m

0X332C,

0x342e.

0X352F/

0x3920 Space Key

0xe05b left win

0xe05c Right win

0XE05D Menu

Right numeric keypad:

0x5200 Insert

0x4700 Home

0x4900 Page up

0x5300 Delete

0X4F00 End

0x5100 PageDown

0x4800 Up ARROW

0x4b00 LEFT Arrow

0x5000 DOWN ARROW

0x4d00 RIGHT Arrow

0X352F/

0X372A *

0X4A2D-(Note that this is the numeric keypad)

0x4737 7

0x4838 8

0x4939 9

0x4b34 4

0X4C35 5

0X4D36 6

0x4e2b +

0X4F31 1

0x5032 2

0x5133 3

0x5230 0

0x532e Del

When entering Chinese characters through a PC keyboard, there are several code conversions:

User---Chinese character input code---Keyboard---keyboard scan code---BIOS keyboard driver----ASCII code----Chinese character input software----Chinese characters inside code

==================================================

Tutorial-Keyboard Scan code

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.