diff options
author | Keith Packard <keithp@keithp.com> | 2017-04-02 19:30:57 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-04-02 19:30:57 -0700 |
commit | 09f8710eb320f37f20dda8c635497c2b505d25e2 (patch) | |
tree | 92b9c941da227b061df519a3caea09f39202e1d1 /src/drivers/ao_event.h | |
parent | 17ec1c510ccc42bbc387940b5805f452697f78d6 (diff) |
altos: add button matrix driver
Scans the matrix once per clock tick queuing events for changed keys.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_event.h')
-rw-r--r-- | src/drivers/ao_event.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/ao_event.h b/src/drivers/ao_event.h index d1c69d81..d1df6eac 100644 --- a/src/drivers/ao_event.h +++ b/src/drivers/ao_event.h @@ -22,6 +22,7 @@ #define AO_EVENT_NONE 0 #define AO_EVENT_QUADRATURE 1 #define AO_EVENT_BUTTON 2 +#define AO_EVENT_KEY 3 struct ao_event { uint8_t type; |