Test mode switch

This commit is contained in:
Denis 2023-11-20 22:02:30 +01:00
parent 3b2181c738
commit 00c05b7a73
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
5 changed files with 26 additions and 12 deletions

View file

@ -705,11 +705,9 @@ void *virt_ds4_thread_func(void *ptr) {
for (;;) {
usleep(1250);
if ((logic->flags & LOGIC_FLAGS_VIRT_DS4_ENABLE) != 0) {
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);