alex / alex/what-happens-when

Enter key scancode

Aperta
#55 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Nessun dato sulla lingua
Stelle
43.3k
Fork
5.7k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

> This allows a small amount of current to flow into the logic circuitry of the keyboard, which scans the state of each key switch, debounces the electrical noise of the rapid intermittent closure of the switch, and converts it to a keycode integer, in this case 13

That is wrong. 13 is the ASCII code for carriage return, but keyboards don't speak ASCII. USB keyboards use scancode set 3 while older keyboards usually use scancode set 2 (and can be configured to use set 1 instead, and sometimes supports set 3). In both set 2 and 3 enter has the make code 0x5A (90), which is sent when the key is pressed. It is only converted into a keycode at a far later time by a keyboard driver or possibly by a userspace program.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.