【发布时间】:2013-11-03 03:00:32
【问题描述】:
是否可以使用 Python “轰隆”我的 PC 无线 Xbox 360 控制器?我只找到了读取输入的解决方案,但我找不到有关振动/隆隆声的信息。
编辑:
按照@AdamRosenfield 提供的代码,我收到以下错误。
Traceback (most recent call last):
File "C:\Users\Usuario\Desktop\rumble.py", line 8, in <module>
xinput = ctypes.windll.Xinput # Load Xinput.dll
File "C:\Python27\lib\ctypes\__init__.py", line 435, in __getattr__
dll = self._dlltype(name)
File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found.
请注意,最后一个错误是从西班牙语翻译过来的。
【问题讨论】:
标签: python output xbox vibration