what do you mean by”all over the place” ? completely random? or not working at all? orr?
i suggest starting off with a virgin install of retropie not a premade image, boot into emulation station, and set up controls there, and see if you get the same problem,
let us know