Skip to content

Commit

Permalink
[Bluetooth, PS4] GIMX does not react to the Dualshock 4 inputs #369
Browse files Browse the repository at this point in the history
  • Loading branch information
Matlo committed Mar 10, 2016
1 parent c59df73 commit 7e8ba79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,7 @@ int adapter_detect()
}
}
}
#ifndef WIN32
else if(adapter->atype == E_ADAPTER_TYPE_BLUETOOTH)
{
if (adapter->ctype == C_TYPE_DS4)
Expand All @@ -888,6 +889,7 @@ int adapter_detect()
controller_init_report(C_TYPE_DS4, &adapter->report[0].value);
}
}
#endif
}
return ret;
}
Expand Down Expand Up @@ -976,15 +978,15 @@ int adapter_start()
ret = -1;
}
}
#ifndef WIN32
#ifndef WIN32
else if(adapter->ctype == C_TYPE_DS4)
{
if(btds4_listen(i) < 0)
{
ret = -1;
}
}
#endif
#endif
else
{
fprintf(stderr, _("Wrong controller type.\n"));
Expand Down

0 comments on commit 7e8ba79

Please sign in to comment.