added gamepad support