Scancode

Uses your system voice; voice and rate in settings.

Snapshot

≈ 2 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

Broadly speaking, a scancode (or scan code) is either a number or bit array that is used by a keyboard protocol to uniquely identify a keyboard key. Keyboards normally send scancodes to the computer to update the computer's internal keyboard state (which tracks what keys are being held down). The exact mechanism how, when and what scancodes are sent depends on the protocol. A keyboard protocol may use other means to update the computer's internal keyboard state, such as sending a bitmap that encodes the state of keys (pressed/released). This is partially the case for a keyboard using the HID protocol when the Boot Protocol is selected. It will send the states of modifier keys encoded in a bitmap (where each bit represents a key state) alongside a scancode array of pressed keys (excluding modifier keys).

Broadly speaking, a scancode (or scan code) is either a number or bit array that is used by a keyboard protocol to uniquely identify a keyboard key. Keyboards normally send scancodes to the computer to update the computer's internal keyboard state (which tracks what keys are being held down). The exact mechanism how, when and what scancodes are sent depends on the protocol. A keyboard protocol may use other means to update the computer's internal keyboard state, such as sending a bitmap that encodes the state of keys (pressed/released). This is partially the case for a keyboard using the HID protocol when the Boot Protocol is selected. It will send the states of modifier keys encoded in a bitmap (where each bit represents a key state) alongside a scancode array of pressed keys (excluding modifier keys).

Text derived from https://en.wikipedia.org/w/index.php?oldid=1374164314 under CC BY-SA 4.0; modifications have been made.