steamcontroller是一个独立Steam控制器驱动程序。
两种模式都可以触觉反馈工作:
xbox360:gamepademulator
desktop:mouse,keyboardmode
安装
1.安装依赖
forpython3.4+:
Installpythonlibusb1sudopipinstalllibusb1
forpython2.7+(youmighthavetousepip2forpython2.7orpip3forpython3):
Installpythonlibusb1sudopipinstalllibusb1Installpythonenumbackportsudopipinstallenum34
2.获得该项目tarbal或从GitHub复制它:
# Get from tarbal:wget https://github.com/ynsta/steamcontroller/archive/master.tar.gztar xf master.tar.gzcd steamcontroller-master# or clone it:git clone https://github.com/ynsta/steamcontroller.gitcd steamcontroller3.使用 sudopythonsetup.pyinstall安装Python模块和脚本
4.在/etc/udev/rules.d/99-steam-controller.rules安装udev规则(如果Steam 尚未完成):
# replace game group by a valid group on your system# Steam controller keyboard/mouse modeSUBSYSTEM=="usb", ATTRS{idVendor}=="28de", GROUP="games", MODE="0660"# Steam controller gamepad modeKERNEL=="uinput", MODE="0660", GROUP="games", OPTIONS+="static_node=uinput"5.刷新udev:sudoudevadmcontrol--reload
评论