DS4 controller should stay connected even when not emitting

This commit is contained in:
Denis 2023-11-21 00:46:22 +01:00
parent 2b91370982
commit 968f93bfdf
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03

View file

@ -704,10 +704,10 @@ void *virt_ds4_thread_func(void *ptr) {
for (;;) {
usleep(1250);
event(fd);
if (logic->gamepad_output == GAMEPAD_OUTPUT_DS4) {
event(fd);
const int res = send_data(fd, logic);
if (res < 0) {
fprintf(stderr, "Error sending HID report: %d", res);