google JoyToKey, it's what i use to play games that don't have Joystick support, including rotmg with my ps3 control.
Play web games with your favorite joystick!
JoyToKey enables you to control any softwares (e.g. browsers, social games on the web, FLASH games, Microsoft office applications or even Windows) by using your favorite windows joystick