Skip to content

Commit

Permalink
Fix issue #25 - emulating raw key-press/release
Browse files Browse the repository at this point in the history
  • Loading branch information
pocomane committed Mar 19, 2022
1 parent 38186a9 commit 5d6a4b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,9 @@ static char* parse_tagged_byte(char* seq, int* code, int* tag){
switch( *seq){
default: return 0;
// TODO : use different char and tag definition
case TAG_KEY_FULL: if (tag) *tag = TAG_KEY_FULL;
case TAG_KEY_PRESS: if (tag) *tag = TAG_KEY_PRESS;
case TAG_KEY_RELEASE: if (tag) *tag = TAG_KEY_RELEASE;
break; case TAG_KEY_FULL: if (tag) *tag = TAG_KEY_FULL;
break; case TAG_KEY_PRESS: if (tag) *tag = TAG_KEY_PRESS;
break; case TAG_KEY_RELEASE: if (tag) *tag = TAG_KEY_RELEASE;
}
return result;
}
Expand Down

0 comments on commit 5d6a4b9

Please sign in to comment.