Added controller support for Mac