ReactOS
0.4.15-dev-1632-g4e289ce
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
13
UCHAR
KeyMatrix
[8][8] =
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
27
CHAR
28
NTAPI
29
LlbKeypadGetChar
(
VOID
)
30
{
31
UCHAR
ScanCode
;
32
UCHAR
Col, Row;
33
34
ScanCode
=
LlbHwKbdRead
();
35
Col =
ScanCode
>> 4;
36
Row =
ScanCode
& 0xF;
37
38
/* Return the ASCII character */
39
return
KeyMatrix
[Col][Row];
40
}
41
42
/* EOF */
ScanCode
ULONG ScanCode
Definition:
api.c:39
KEY_DOWN
#define KEY_DOWN
Definition:
keycodes.h:46
CHAR
char CHAR
Definition:
xmlstorage.h:175
KeyMatrix
UCHAR KeyMatrix[8][8]
Definition:
matrix.c:13
KEY_LEFT
#define KEY_LEFT
Definition:
keycodes.h:47
KEY_F2
#define KEY_F2
Definition:
keycodes.h:52
KEY_LEFTSHIFT
#define KEY_LEFTSHIFT
Definition:
keycodes.h:43
KEY_CAPS_LOCK
#define KEY_CAPS_LOCK
Definition:
keycodes.h:50
NTAPI
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition:
IoEaTest.cpp:117
LlbKeypadGetChar
CHAR NTAPI LlbKeypadGetChar(VOID)
Definition:
matrix.c:29
KEY_RIGHT
#define KEY_RIGHT
Definition:
keycodes.h:48
KEY_SEND
#define KEY_SEND
Definition:
keycodes.h:65
KEY_BACKSPACE
#define KEY_BACKSPACE
Definition:
keycodes.h:40
KEY_HOME
#define KEY_HOME
Definition:
keycodes.h:44
UCHAR
unsigned char UCHAR
Definition:
xmlstorage.h:181
KEY_F1
#define KEY_F1
Definition:
keycodes.h:51
LlbHwKbdRead
INT NTAPI LlbHwKbdRead(VOID)
Definition:
hwinfo.c:55
KEY_UP
#define KEY_UP
Definition:
keycodes.h:45
KEY_SPACE
#define KEY_SPACE
Definition:
keycodes.h:42
KEY_F3
#define KEY_F3
Definition:
keycodes.h:53
void
Definition:
nsiface.idl:2306
KEY_END
#define KEY_END
Definition:
keycodes.h:64
KEY_ENTER
#define KEY_ENTER
Definition:
keycodes.h:39
boot
armllb
hw
matrix.c
Generated on Wed Jan 20 2021 06:05:06 for ReactOS by
1.8.15