PS4/PS5 Controller on bonk.io and hitbox.io

Map PS4 controller stick + D-pad + custom buttons to keyboard for Bonk.io etc.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
pro9905
今日安裝
0
安裝總數
7
評價
0 0 0
版本
1.0
建立日期
2025-06-28
更新日期
2025-06-28
尺寸
3.0 KB
授權條款
MIT
腳本執行於

PS4 & PS5 Controller to Keyboard Mapper for Bonk.io and Hitbox.io

This userscript maps your PS4 or PS5 controller inputs to keyboard keys for seamless gameplay on Bonk.io, Hitbox.io, and similar browser games.

  • Left thumbstick & D-pad control movement using W, A, S, D keys.
  • X button and thumbstick up both press W for flexible upward movement.
  • Square button and L2 trigger simulate the Spacebar.
  • Circle button and R2 trigger send both X and Left Shift keys simultaneously for sprint or special actions.
  • Designed for smooth and responsive controls without requiring extra software.
  • Compatible with most modern browsers supporting the Gamepad API.

Important:
Please change your in-game keybindings to:

  • Move Up: W (also triggered by X button and D-pad up)
  • Move Left: A
  • Move Down: S
  • Move Right: D
  • Jump or Action: Spacebar
  • Sprint or Special Action: X + Shift (triggered together)

Most games let you customize controls in their settings. Make sure your bindings match the keys above.


Note:
Some modifier keys like Shift may not always be detected perfectly in every game due to browser/game limitations.


Supported Controllers:

  • PS4 DualShock 4
  • PS5 DualSense
  • Likely works with other standard gamepads supporting Gamepad API (PS3 support limited).

Enjoy your gameplay!