修改xbox大小

This commit is contained in:
mmc
2026-06-02 11:19:03 +08:00
parent 368ae2d0c8
commit c4a9ac4ea4
2 changed files with 3 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ const XboxController = ({ onGamepadUpdate, handleControlModal, isControlled, isC
// UI mapping for Xbox Gamepad
//点火熄火 上面俩 AB升降底盘 XY割刀加减速 button急停
//点火熄火 上面俩 AB升降底盘 XY割刀加减速 button7急停
// Buttons: 0:A, 1:B, 2:X, 3:Y, 4:LB, 5:RB, 6:LT, 7:RT, 8:Back, 9:Start, 10:LS, 11:RS, 12:Up, 13:Down, 14:Left, 15:Right
const { buttons, axes, connected } = gamepadState;
@@ -113,7 +113,7 @@ const XboxController = ({ onGamepadUpdate, handleControlModal, isControlled, isC
});
return (
<div className="relative w-full aspect-[4/3] flex items-center justify-center "
<div className="relative h-[252px] aspect-[4/3] flex items-center justify-center "
onClick={() => {
if (connected && !isControlled && hasControlRight) {
console.log("点击了无控制权限,发起权限请求");