Depending on which OS you use you can use the following software to map a controller to the keyboard:
Windows : Joy2Key or Xpadder
Linux : Qjoypad
MacOS : Joystick Mapper or Enjoy2
Help your character infiltrate the hideout of the fabled Ali Baba and his gang of forty thieves as they try to steal everything in ancient Persia. In the amazingly fun Ali Baba and 40 Thieves you must navigate through the mazes quickly, avoiding the nasty forty thieves as you gather the loot and stash it in the coffers at the bottom of the screen. just avoid being seen or caught by the bad guys and you'll soon be richer than your wildest dreams!
For those looking to play other great retro classics the Mame - Original Arcade section of the site has plenty. if you're simply looking to hit more great gaming from the realms of arcade history then Wily & Right no RockBoard: That's Paradise, The Flintstones - Bedrock Bowling and Donald Duck - Goin' Quackers have what you are looking for.
Ali Baba and 40 Thieves is an online retro game which you can play for free here at playretrogames.com It has the tags: arcade, and was added on Feb 10, 2015. It has been played 4240 times and is available for the following systems: mame / mame / Mame - Original Arcade You can also play Ali Baba and 40 Thieves unblocked.