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, 9 months ago

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

  • Property svn:executable set to *
File size: 402 bytes
Line 
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
7done
8
9. ${FLAIR_ROOT}/flair-src/scripts/ubuntu_cgroup_hack.sh
10
11${FLAIR_ROOT}/flair-install/bin/tools/$ARCH_DIR/dualshock3 $*
Note: See TracBrowser for help on using the repository browser.