added gamepad support and some samples