added support for gamepad