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,”
“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).