source: flair-src/trunk/tools/Controller/DualShock3/resources/core2-64/dualshock3.sh@ 467

Last change on this file since 467 was 467, checked in by Sanahuja Guillaume, 2 years ago

change default usb method for ds3, now input event, no need to be root

  • Property svn:executable set to *
File size: 402 bytes
RevLine 
[304]1#! /bin/bash
2ARCH_DIR=core2-64
3#on kernel >=4.13, ds3 is seen as a mouse
4#search every ds3 connected and disable them
5for id in `xinput --list|grep 'Sony PLAYSTATION(R)3 Controller'|perl -ne 'while (m/id=(\d+)/g){print "$1\n";}'`; do
6 xinput set-prop $id 'Device Enabled' 0
[467]7done
[304]8
[306]9. ${FLAIR_ROOT}/flair-src/scripts/ubuntu_cgroup_hack.sh
[304]10
[306]11${FLAIR_ROOT}/flair-install/bin/tools/$ARCH_DIR/dualshock3 $*
Note: See TracBrowser for help on using the repository browser.