Added gamepad function protytype.