for browsers that don't support navigator.getGamepads()
นี่คือเวอร์ชันทั้งหมดของสคริปต์นี้ แสดงเฉพาะเวอร์ชันที่โค้ดมีการเปลี่ยนแปลง