Skip to content
Permalink
Browse files

Fixed Linux build

  • Loading branch information
slouken committed Aug 9, 2017
1 parent c49fa37 commit f15dbc8f63cf85119b49601d226f0970b8f7ef2b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/joystick/SDL_gamecontroller.c
@@ -884,7 +884,7 @@ static ControllerMapping_t *SDL_PrivateGetControllerMappingForNameAndGUID(const
if (SDL_strstr(name, "Xbox 360 Wireless Receiver")) {
/* The Linux driver xpad.c maps the wireless dpad to buttons */
SDL_bool existing;
mapping = SDL_PrivateAddMappingForGUID(jGUID,
mapping = SDL_PrivateAddMappingForGUID(guid,
"none,X360 Wireless Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,",
&existing, SDL_CONTROLLER_MAPPING_PRIORITY_DEFAULT);
}

0 comments on commit f15dbc8

Please sign in to comment.