x11: Added gamepad support.