Skip to content

Commit

Permalink
fix: set BTN_TOUCH if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtr126 committed Nov 12, 2023
1 parent bc7295b commit 8c62517
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/cpp/touchpad_direct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ void SetKeyBits(int device_fd, int uinput_fd) {
ioctl(uinput_fd, UI_SET_KEYBIT, key_i);
}
}
if(!HasSpecificKey(device_fd, BTN_TOUCH)) {
ioctl(uinput_fd, UI_SET_KEYBIT, BTN_TOUCH);
}
}

bool HasEventType(int device_fd, unsigned int type) {
Expand Down

0 comments on commit 8c62517

Please sign in to comment.