Skip to content
Permalink
Browse files

shot in the dark at handling arc key presses

  • Loading branch information
csboling committed Jul 13, 2019
1 parent 4638e30 commit a3b1bf89933e53484fa831ba02e9f3e52101cb1a
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/monome.c
@@ -409,7 +409,15 @@ void monome_ring_enc_parse_event_data(u32 data, u8* n, s8* val) {

// ring press/lift
static inline void monome_ring_key_write_event( u8 n, u8 val) {
// TODO
s32* data = (s32*)&ev.data;
if (n == 0) {
*data = val;
}
else if (n == 1) {
*data = val << 1;
}
ev.type = kEventKey;
event_post(&ev);
}
void monome_ring_key_parse_event_data(u32 data, u8* n, u8* val) {
// TODO

0 comments on commit a3b1bf8

Please sign in to comment.