Gamepad support for SNES core

Still needs a more generalised implementation, and only works fully with the extended gamepad layout (that can be fixed when the more genralised solution is implemented).