Clean up. Fixed and tested gamepad as a plugin.