ReactOS 0.4.15-dev-7924-g5949c20
matrix.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Boot Loader
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: boot/armllb/hw/matrix.c
5 * PURPOSE: LLB Matrix Keypad Routines
6 * PROGRAMMERS: ReactOS Portable Systems Group
7 */
8
9#include "precomp.h"
10
11/* SYNPATICS KEYPAD MATRIX ****************************************************/
12
14{
15 {'e', 'r', 't', KEY_HOME, 0, 0, 'i', KEY_LEFTSHIFT},
16 {'d', 'f', 'g', KEY_SEND, 0, 0, 'k', KEY_ENTER},
17 {'x', 'c', 'v', KEY_END, 0, 0, '.', KEY_CAPS_LOCK},
18 {'z', '+', 'b', KEY_F1, 0, 0, 'o', KEY_SPACE},
19 {'w', 'y', 'u', KEY_F2, 0, 0, 'l', KEY_LEFT},
20 {'s', 'h', 'j', KEY_F3, 0, 0, 'm', KEY_RIGHT},
21 {'q', 'a', 'n', KEY_BACKSPACE, 0, 0, 'p', KEY_UP},
22 {0, 0, 0, 0, 0, 0, KEY_ENTER, KEY_DOWN}
23};
24
25/* FUNCTIONS ******************************************************************/
26
27CHAR
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}
41
42/* EOF */
UINT ScanCode
Definition: VirtualKey.c:24
CHAR NTAPI LlbKeypadGetChar(VOID)
Definition: matrix.c:29
UCHAR KeyMatrix[8][8]
Definition: matrix.c:13
#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
INT NTAPI LlbHwKbdRead(VOID)
Definition: hwinfo.c:55
#define NTAPI
Definition: typedefs.h:36
unsigned char UCHAR
Definition: xmlstorage.h:181
char CHAR
Definition: xmlstorage.h:175