Skip to content

Commit

Permalink
Fixed buttons being stuck down
Browse files Browse the repository at this point in the history
  • Loading branch information
mckset authored Feb 2, 2023
1 parent 4197af0 commit 1308676
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions KD100.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
V1.0 - stable
V1.1 - minor fix
https://github.com/mckset/KD100.git
KD 100 Linux driver for X11 desktops
Other devices can be supported by modifying the code to read data received by the device
Expand Down Expand Up @@ -186,9 +186,11 @@ void GetDevice(int debug){
if (debug == 1 && keycode != 0){
printf("Keycode: %d\n", keycode);
}
printf("prevType: %d\n", prevType);
if (keycode == 0 && prevType != 0){ // Reset key held
Handler(prevKey, prevType);
prevType = 0;
strcpy(prevKey, "");
prevType=0;
}
if (keycode == 641){ // Wheel Clockwise
Handler(wheelEvents[wheelFunction], -1);
Expand Down

0 comments on commit 1308676

Please sign in to comment.