Added rudimentary Gamepad controller code