iOS: MFi controllers support
Refactoring.
Merge pull request #5200 from sky-zer/master

iOS: MFi controllers support