ReactOS 0.4.16-dev-340-g0540c21
matrix.c File Reference
#include "precomp.h"
Include dependency graph for matrix.c:

Go to the source code of this file.

Functions

CHAR NTAPI LlbKeypadGetChar (VOID)
 

Variables

UCHAR KeyMatrix [8][8]
 

Function Documentation

◆ 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}
UINT ScanCode
Definition: VirtualKey.c:24
UCHAR KeyMatrix[8][8]
Definition: matrix.c:13
INT NTAPI LlbHwKbdRead(VOID)
Definition: hwinfo.c:55
unsigned char UCHAR
Definition: xmlstorage.h:181

Referenced by LlbFwGetCh().

Variable Documentation

◆ KeyMatrix

UCHAR KeyMatrix[8][8]
Initial value:
=
{
{'e', 'r', 't', KEY_HOME, 0, 0, 'i', KEY_LEFTSHIFT},
{'d', 'f', 'g', KEY_SEND, 0, 0, 'k', KEY_ENTER},
{'x', 'c', 'v', KEY_END, 0, 0, '.', KEY_CAPS_LOCK},
{'z', '+', 'b', KEY_F1, 0, 0, 'o', KEY_SPACE},
{'w', 'y', 'u', KEY_F2, 0, 0, 'l', KEY_LEFT},
{'s', 'h', 'j', KEY_F3, 0, 0, 'm', KEY_RIGHT},
{'q', 'a', 'n', KEY_BACKSPACE, 0, 0, 'p', KEY_UP},
{0, 0, 0, 0, 0, 0, KEY_ENTER, KEY_DOWN}
}
#define KEY_RIGHT
Definition: keycodes.h:48
#define KEY_LEFTSHIFT
Definition: keycodes.h:43
#define KEY_BACKSPACE
Definition: keycodes.h:40
#define KEY_DOWN
Definition: keycodes.h:46
#define KEY_F1
Definition: keycodes.h:51
#define KEY_F3
Definition: keycodes.h:53
#define KEY_SPACE
Definition: keycodes.h:42
#define KEY_END
Definition: keycodes.h:64
#define KEY_CAPS_LOCK
Definition: keycodes.h:50
#define KEY_ENTER
Definition: keycodes.h:39
#define KEY_SEND
Definition: keycodes.h:65
#define KEY_F2
Definition: keycodes.h:52
#define KEY_LEFT
Definition: keycodes.h:47
#define KEY_HOME
Definition: keycodes.h:44
#define KEY_UP
Definition: keycodes.h:45

Definition at line 13 of file matrix.c.

Referenced by LlbKeypadGetChar().