If the game supports joystick control, you can play it with a USB joystick, gamepad or racing wheel—or even with an iPhone. There are two ways to get started:
Connect the controller to your Mac and then relaunch the game. The game should find the joystick automatically — if not, make sure that joystick control is enabled in the game’s options screen.
Most USB controllers will work in OS X, but some may require additional drivers before OS X will recognise them. Consult the device manufacturer if you have trouble getting OS X to recognise it.
To get OS X to recognise an XBOX 360 controller, you need to install third-party drivers. Get the drivers here
Joypad is a free iOS app that makes your iPhone or iPod Touch into a game controller for your Mac.
Get Joypad from the iOS App Store. Once you have it, start up Joypad on your iOS device and then relaunch the game. After a short delay, a virtual gamepad or joystick will appear on the iOS device: then you can begin controlling the game.
If Joypad does not connect initially, try closing and relaunching Joypad on your iOS device. Consult Joypad’s Support FAQ for more tips.