显示与输入

游戏手柄测试

检测连接的控制器,可视化按钮和操纵杆,读取轴和触发器,并在支持的情况下测试隆隆声。

隐私: 游戏手柄数据由浏览器在本地读取。没有上传控制器数据。
界面标签和工具名称已翻译。此页面上的详细指南和常见问题解答目前以英文编写。

测试接口

按“开始”后,您的浏览器可能会请求许可。
连接控制器并按下按钮。某些浏览器需要在控制器出现之前按下按钮。

左摇杆

右摇杆

控制器—
测绘—
轴—
已连接—
#按钮按下价值
—
控制器支持因浏览器和操作系统而异。振动是可选的。模拟摇杆值可能会略有漂移;这对于许多控制器来说是正常的。

如何使用这个工具

  1. Connect your controller by USB or Bluetooth, then press a button to wake it.
  2. Click Scan controllers and wait for the device to appear.
  3. Press buttons and move sticks to see live values.
  4. Use the vibration button if your browser supports haptics, then disconnect safely.

广告

技术说明

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.

故障排除

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.

常见问题

广告