Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道是否有办法改变 Xbox 控制器上点亮的环的哪一部分?例如,我希望插入第一个控制器来代表玩家 2(如果玩家 1 选择使用键盘/鼠标输入)
谢谢。
使用 XInputRemap 将连接的控制器重新映射到与这些控制器关联的用户。这是 XInput API 的一部分。因此,如果您有 2 个玩家并想要交换他们的控制器:
DWORD remap[XUSER_MAX_COUNT]; remap[0] = 1; remap[1] = 0; DWORD dwResult = XInputRemap(remap);
SDK 包含一个演示此功能的示例。