Test mode switch
This commit is contained in:
parent
3b2181c738
commit
00c05b7a73
5 changed files with 26 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue