I always loved playing N64 games, especially Mario Kart. I used to travel a lot and I couldnt carry my joystick everywhere so that I can play the games, so I always thought of having my iPhone as game controller and recently I found this out, on how to emulate N64 games in MAC and use iPhone as controller,

First Download the emulator – Sixtyforce
Sixtyforce Download

Download Joypad legacy for MAC
Joypad legacy Download

Download Joypad legacy for iPhone
Joypad legacy iTunes

Now follow the below steps
Steps to connect