ReactOS 0.4.15-dev-7924-g5949c20
keyboard.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

CHAR NTAPI LlbKeyboardGetChar (VOID)
 
CHAR NTAPI LlbKeypadGetChar (VOID)
 

Function Documentation

◆ LlbKeyboardGetChar()

CHAR NTAPI LlbKeyboardGetChar ( VOID  )

Definition at line 225 of file keyboard.c.

226{
227 UCHAR ScanCode, KeyCode;
228
229 do
230 {
231 /* Read the scan code and convert it to a virtual key code */
233 } while (!LlbKbdTranslateScanCode(ScanCode, &KeyCode));
234
235 /* Is this ASCII? */
236 if (KeyCode > 96) return ScanCode;
237
238 /* Return the ASCII character */
239 return LlbHwScanCodeToAsciiTable[KeyCode][0];
240}
UINT ScanCode
Definition: VirtualKey.c:24
CHAR LlbHwScanCodeToAsciiTable[58][2]
Definition: keyboard.c:42
UCHAR NTAPI LlbKbdTranslateScanCode(IN USHORT ScanCode, IN PUCHAR KeyCode)
Definition: keyboard.c:149
INT NTAPI LlbHwKbdRead(VOID)
Definition: hwinfo.c:55
unsigned char UCHAR
Definition: xmlstorage.h:181

Referenced by LlbFwGetCh().

◆ LlbKeypadGetChar()

CHAR NTAPI LlbKeypadGetChar ( VOID  )

Definition at line 29 of file matrix.c.

30{
32 UCHAR Col, Row;
33
35 Col = ScanCode >> 4;
36 Row = ScanCode & 0xF;
37
38 /* Return the ASCII character */
39 return KeyMatrix[Col][Row];
40}
UCHAR KeyMatrix[8][8]
Definition: matrix.c:13

Referenced by LlbFwGetCh().