Skip to content

Commit

Permalink
Fix Dualshock 4 v2 name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Laurendeau committed Nov 5, 2016
1 parent be3b073 commit 59f64a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shared/gasync/src/input/ginput.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#define BT_SIXAXIS_NAME "PLAYSTATION(R)3 Controller"
#define XONE_PAD_NAME "Microsoft X-Box One pad"
#define DUALSHOCK4_V2_NAME "Sony Interactive Entertainment Wireless Controller"

static struct
{
Expand Down Expand Up @@ -124,6 +125,11 @@ int ginput_init(const GPOLL_INTERFACE * poll_interface, unsigned char mkb_src, i
name = "Sony PLAYSTATION(R)3 Controller";
joysticks[i].type = GE_JS_SIXAXIS;
}
if (!strncmp(name, DUALSHOCK4_V2_NAME, sizeof(DUALSHOCK4_V2_NAME)))
{
// Rename Dualshock 4 v2.
name = "Sony Computer Entertainment Wireless Controller";
}
#ifdef WIN32
if (!strncmp(name, XONE_PAD_NAME, sizeof(XONE_PAD_NAME) - 1))
{
Expand Down

0 comments on commit 59f64a3

Please sign in to comment.