steamcontroller独立 Steam 控制器驱动程序
steamcontroller是一个独立 Steam 控制器驱动程序 。
两种模式都可以触觉反馈工作:
-
xbox360: gamepad emulator
-
desktop: mouse, keyboard mode
安装
1.安装依赖
-
for python 3.4+:
Install python libusb1 sudo pip install libusb1
-
for python 2.7+ (you might have to use pip2 for python2.7 or pip3 for python3):
Install python libusb1 sudo pip install libusb1
Install python enum backport sudo pip install enum34
2.获得该项目tarbal或从GitHub复制它:
# Get from tarbal: wget https://github.com/ynsta/steamcontroller/archive/master.tar.gz tar xf master.tar.gz cd steamcontroller-master # or clone it: git clone https://github.com/ynsta/steamcontroller.git cd steamcontroller
3.使用 sudo python setup.py install 安装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 mode SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", GROUP="games", MODE="0660" # Steam controller gamepad mode KERNEL=="uinput", MODE="0660", GROUP="games", OPTIONS+="static_node=uinput"
5.刷新udev: sudo udevadm control --reload
评论