Tes Gamepad
Deteksi pengontrol yang terhubung, visualisasikan tombol dan stik, baca sumbu dan pemicu, dan uji gemuruh jika didukung.
Antarmuka uji
Browser Anda mungkin meminta izin setelah Anda menekan Mulai.Tongkat kiri
Tongkat kanan
| # | Tombol | Ditekan | Nilai |
|---|---|---|---|
| — | |||
Cara menggunakan alat ini
- Connect your controller by USB or Bluetooth, then press a button to wake it.
- Click Scan controllers and wait for the device to appear.
- Press buttons and move sticks to see live values.
- Use the vibration button if your browser supports haptics, then disconnect safely.
Iklan
Penjelasan teknis
The Gamepad API exposes connected devices through navigator.getGamepads(). Buttons, axes, triggers, and timestamps are polled with requestAnimationFrame. Vibration uses the experimental hapticActuators interface where implemented.
Browser mappings vary. A controller may be recognized while some buttons are unmapped or labelled incorrectly. Raw axis values are device-dependent.
Pemecahan masalah
Controller is not detected
Press a button after connecting; some browsers only expose a gamepad after user input. Check the operating-system game controller settings.
Wrong button mapping
The browser uses a standard mapping when available, but not every controller reports one. Compare raw indices instead.
Vibration does not work
Haptics support is limited by browser, operating system, and connection type.
Controller disconnects
Try a different USB port or cable, or reconnect Bluetooth. Battery level may be low.
Alat terkait
Pertanyaan yang sering diajukan
Iklan