USB操纵杆的BeamNG inputmap语法错误

USB操纵杆的BeamNG inputmap语法错误,input,syntax,joystick,torque3d,beamng,Input,Syntax,Joystick,Torque3d,Beamng,我想为我的USB操纵杆制作inputmap。我在本教程中制作了以下内容: 我的输入地图: // Product Name: (USB Joystick) // GUID: (00030E8F-0000-0000-0000-504944564944, format: {XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}) // axes: (4^Y^X^RZ^Z, format 3^X^X^X or 4^X^X^X^X, etc.) //%device = "{00030E8

我想为我的USB操纵杆制作inputmap。我在本教程中制作了以下内容: 我的输入地图:

// Product Name: (USB Joystick)
// GUID: (00030E8F-0000-0000-0000-504944564944, format: {XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX})
// axes: (4^Y^X^RZ^Z, format 3^X^X^X or 4^X^X^X^X, etc.)

//%device = "{00030E8F-0000-0000-0000-504944564944}-" @ %joyNum 0;  (<- Guid goes there too)
%device = "joystick" @ %joyNum 0; (<- device type goes there, joystick/gamepad)

// 0 deadzone
$gp_deadzone = "-0.15 0.15"; (possible deadzone configure)

// camera
moveMap.bind(%device, (axis name), "D", $gp_deadzone, gamepadYaw);
moveMap.bind(%device, (axis name), "D", $gp_deadzone, gamepadPitch);
// movement
moveMap.bind(%device, (rzaxis), joy_steer_nl_dz);
//moveMap.bind(%device, thumbly, "D", $gp_deadzone, gamePadMoveY); // using triggers instead

moveMap.bind(%device, (zaxis), "D", $gp_deadzone, joy_brake);
moveMap.bind(%device, (yaxis), "D", $gp_deadzone, joy_accelerate);

moveMap.bindCmd(%device, (button name), "beamNGResetPhysics();", "");
moveMap.bindCmd(%device, (button name), "beamNGTogglePhysics();", "");
moveMap.bindCmd(%device, (button1), "beamNGToggleParkingBrake();", "");
moveMap.bindCmd(%device, (button2), "beamNGSwitchVehicle();", "");
moveMap.bindCmd(%device, (button name), "gamepadZoom(-0.1);", "gamepadZoom(0);");
moveMap.bindCmd(%device, (button name), "gamepadZoom(0.1);", "gamepadZoom(0);");
moveMap.bindCmd(%device, (button3), "beamNGResetCamera();", "");

moveMap.bindCmd(%device, (button4), "beamNGCameraToggle();", "");
//产品名称:(USB操纵杆)
//GUID:(00030E8F-0000-0000-504944564944,格式:{XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXXX})
//轴:(4^Y^X^RZ^Z,格式为3^X^X^X或4^X^X^X,等等)
//%device=“{00030E8F-0000-0000-0000-504944564944}-”@%joyNum 0;(>高级脚本错误报告。第6行。
38.952146 |>>>一些错误上下文,在错误停止的两侧有##:
38.952211 |//GUID:(00030E8F-0000-0000-0000-504944564944,格式:{XXXXXX-XXXX-XXXX-XXXXXXXXXXXXXX})
38.952233 |//轴:(4^Y^X^RZ^Z,格式3^X^X^X或4^X^X^X^X等)
38.952249| 
38.952264 |/%device=“{00030E8F-0000-0000-0000-504944564944}-”@%joyNum 0;(>错误报告完成。
我尽我所能来解决这个问题,但还是没有成功。对不起,我的英语太差了

38.952294|##
38.952309|##
这两个标志指示了故障的位置

这意味着您需要删除表示

%device = "joystick" @ %joyNum 0;
设备类型在那里,操纵杆/游戏板

和它下面的线

%device = "joystick" @ %joyNum 0;