Since 10.11 macOS has picked up controllers for games with controllers inherently supported. I'll link my github repo here once I've sorted out all my issues.
This driver doesn't work on Big Sur, probably because Apple moved away from letting drivers have kernel access, instead bumping them to DriverKit. Otherwise, I'd tell ya to take a look at DriverKit documentation. Any game with inherent controller support is picked up by macOS anyways, making a driver sorta not necessary.