xuruiyang 发表于 2021-12-26 19:58

手柄补丁修正思路

本帖最后由 xuruiyang 于 2021-12-26 20:24 编辑

手柄设置在优惠卷的*_settings\controller 下

找到了模拟器的原始使用说明如下: 出处:Goldberg / goldberg_emulator · GitLab

看到各位的回复,先说一下:
S版原本不支持手柄就是因为附件文件中定义的手柄动作有问题,这也直接导致使用上面链接产生的手柄mapping 文件出现异常,从而使两个摇杆失效,又因为针对动作的定义,每款游戏不同,可能无法通过揣测来决定如何完善手柄补丁

但是本贴是为了抛砖引玉,看看哪位大神能做修复

Controller (Note: at the moment this feature is only enabled in the windows experimental builds and the linux builds):
SteamController/SteamInput support is limited to XInput controllers. If your controller is not XInput, there are many tools (at least for windows) that you can use to make it emulate an XInput one.
Steam uses things called action sets for controller configuration. An action set is a group of action names. Action names are bound to buttons, triggers or joysticks.
The emulator needs to know for each action set, which button is linked to which action name. Create a ACTION_SET_NAME.txt file in the steam_settings\controller folder for every action set the game uses.
To see an example for the game Crystar see: steam_settings.EXAMPLE\controller.EXAMPLE
In the action set txt files the format is:
For digital actions (buttons, on or off): ACTION_NAME=BUTTON_NAME
For analog actions (joysticks, triggers): ACTION_NAME=ANALOG_NAME=input source mode
Actions can be bound to more than one button by separating the buttons with , like this: ACTION_NAME=A,B

If you want to configure a game yourself, find the xbox360 or xbox one vdf file for the game and you should be able to figure things out.
You can also use the scripts\controller_config_generator\parse_controller_vdf.py script in the emu source code repo.

For example to get the vdf file for the game Crystar: https://steamdb.info/app/981750/config/
If you look at: steamcontrollerconfigdetails, you will see something like: 1779660455/controller_type: controller_xbox360
1779660455 refers to a file id that you can dl using your favorite steam workshop downloader site Steam Workshop Downloader :: IO.
The url would be: https://steamcommunity.com/sharedfiles/filedetails/?id=1779660455

The glyphs directory contains some glyphs for the controller buttons for the games that use the GetGlyphForActionOrigin function.
If you want to use the real steam glyphs instead of the free ones in the example directory copy them from: <Steam Directory>\tenfoot\resource\images\library\controller\api folder.

Valid digital button names:
DUP
DDOWN
DLEFT
DRIGHT
START
BACK
LSTICK
RSTICK
LBUMPER
RBUMPER
A
B
X
Y
DLTRIGGER(emulated buttons, the joy ones are used by games in menus for example. When the game wants to know if the trigger is pressed without the intensity)
DRTRIGGER
DLJOYUP
DLJOYDOWN
DLJOYLEFT
DLJOYRIGHT
DRJOYUP
DRJOYDOWN
DRJOYLEFT
DRJOYRIGHT





sd1012718 发表于 2021-12-26 20:00

十分感谢分享!!

yzwzsswxb 发表于 2021-12-26 20:04

万分的感谢..先试试

Strike.Leo 发表于 2021-12-26 20:07

本帖最后由 Strike.Leo 于 2021-12-26 22:00 编辑

什么东西

孤灯残影 发表于 2021-12-26 20:09

2517444515_controller_config.vdf

这个文件是什么?手柄补丁?怎么用?

qwe414812679 发表于 2021-12-26 20:10

没看懂,我应该怎么弄?设置自己的steam ID?放到哪个位置?

xuruiyang 发表于 2021-12-26 20:25

qwe414812679 发表于 2021-12-26 20:10
没看懂,我应该怎么弄?设置自己的steam ID?放到哪个位置?

S版原本不支持手柄就是因为附件文件中定义的手柄动作有问题,这也直接导致使用上面链接产生的手柄mapping 文件出现异常,从而使两个摇杆失效,又因为针对动作的定义,每款游戏不同,可能无法通过揣测来决定如何完善手柄补丁

但是本贴是为了抛砖引玉,看看哪位大神能做修复

遊侠 发表于 2021-12-26 20:37

之前本传那个手柄补丁是誰做的啊,怎么到现在也没出现,本传能做出来,帝国就应该也能做出来

迹部景吾。 发表于 2021-12-26 20:54

小桠枫 发表于 2021-12-26 23:35

手柄补丁导致WASD都是按下之后停不了有没有可能不是定义动作的问题
因为删除了controller里面关于移动的键位也不能让按了WASD控制的人停下来

gf111 发表于 2021-12-27 16:23

希望尽快出我就等着这个手柄补丁开玩

amsco 发表于 2021-12-27 21:39

手柄摇杆用不了 无法跑步什么的

666658 发表于 2021-12-27 21:58

无双8的那个手柄补丁不知道能不能用

小小旅行家 发表于 2021-12-27 22:58

破晓传说的手柄补丁不错 原理应该差不多吧

卡普空人口 发表于 2021-12-28 00:08

一直在等

gf111 发表于 2021-12-28 16:13

12.28在等啥时候才有

abc8730953 发表于 2021-12-28 17:06

我对比过了,感觉映射没有问题,可能是其他原因让游戏无法识别摇杆
页: [1]
查看完整版本: 手柄补丁修正思路