Incorrect GameController mapping? PS3

I’m making a game with SDL2 and found that my PS3 controller didn’t map correctly as a GameController. I found that manually changing the mapping like this made it work properly:

const char* FakePS3Mapping = “030000004c0500006802000000000000,Fake PS3 Controller,a:b14,”
“b:b13,y:b12,x:b15,start:b3,guide:b12,back:b0,dpup:b4,dpleft:b7,dpdown:b6,dpright:b5,”
“leftshoulder:b10,rightshoulder:b11,leftstick:b1,rightstick:b2,leftx:a0,lefty:a1,”
“rightx:a2,righty:a3,lefttrigger:b8,right trigger:b9”;

I’m not sure if the mapping in SDL is incorrect, or if my controller is ‘wrong’ (it’s an ‘offical’ PS3 controller I bought from ebay that is probably a fake).