Changeset 82 in flair-bin for trunk/tools/scripts/dualshock3.sh


Ignore:
Timestamp:
01/08/19 17:45:01 (5 years ago)
Author:
Sanahuja Guillaume
Message:

support for multiple ds3 in usb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/scripts/dualshock3.sh

    r66 r82  
    33
    44#on kernel >=4.13, ds3 is seen as a mouse
    5 /usr/bin/xinput set-prop 'Sony PLAYSTATION(R)3 Controller' 'Device Enabled' 0
     5#search every ds3 connected and disable them
     6for id in `xinput --list|grep 'Sony PLAYSTATION(R)3 Controller'|perl -ne 'while (m/id=(\d+)/g){print "$1\n";}'`; do
     7    xinput set-prop $id 'Device Enabled' 0
     8done
    69
    710#This script is the only one that calls itself with sudo.
Note: See TracChangeset for help on using the changeset viewer.