diff options
author | Bill Richardson <wfrichar@chromium.org> | 2014-02-06 13:10:23 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-02-08 04:15:39 +0000 |
commit | 683beb87378afbebc24a41b532cb2480d90d5282 (patch) | |
tree | 89ce40d4d5d6e20490d0176c267b7f01533a4a2d /common/keyboard_8042.c | |
parent | 5c808ee56c44be4c665de6a85f5feb5cd5753f9d (diff) | |
download | chrome-ec-683beb87378afbebc24a41b532cb2480d90d5282.tar.gz |
Samus: Support capsense input as keyboard events.
This is experimental for now; the capsense chip simply reports its buttons
as the number keys on the keyboard (1-8).
BUG=chrome-os-partner:23382
BRANCH=samus,ToT
TEST=manual
To test, you'll need a reworked and correctly programmed capsense module.
Boot the system, and switch to VT2. Touch the capsense bar and you'll see
the input appear on the console as though you were typing numbers.
Note that the capsense hardware is still buggy. Refer to the bug for
workarounds.
Change-Id: I4c3a8b70b8197ffd538c38c59c9336383365afa7
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/185434
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Dave Parker <dparker@chromium.org>
Diffstat (limited to 'common/keyboard_8042.c')
-rw-r--r-- | common/keyboard_8042.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/keyboard_8042.c b/common/keyboard_8042.c index 04488ab070..4c9df3044f 100644 --- a/common/keyboard_8042.c +++ b/common/keyboard_8042.c @@ -192,9 +192,11 @@ static const uint16_t scancode_set2[KEYBOARD_ROWS][KEYBOARD_COLS] = { /* Button scancodes. Must be in the same order as defined in button_type */ static const uint16_t button_scancodes[2][KEYBOARD_BUTTON_COUNT] = { /* Set 1 */ - {0xe05e, 0xe02e, 0xe030}, + {0xe05e, 0xe02e, 0xe030, + 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009}, /* Set 2 */ - {0xe037, 0xe021, 0xe032}, + {0xe037, 0xe021, 0xe032, + 0x0016, 0x001e, 0x0026, 0x0025, 0x002e, 0x0036, 0x003d, 0x003e}, }; /*****************************************************************************/ |