Skip to content

Latest commit

 

History

History
85 lines (55 loc) · 1.19 KB

Usage.md

File metadata and controls

85 lines (55 loc) · 1.19 KB

Usage

This driver creates three devices for each attached gamepad.


Access

Access the connected device.

/dev/input/js<Id>


Example

jstest /dev/input/js0



Commanding

Send instructions to the controller.

/sys/class/leds/xpad<Id>/brightness


Example

echo <Command> > /sys/class/leds/xpad0/brightness
echo 0 > /sys/class/leds/xpad0/brightness

Command Description
0 Turn Off
1 Blink All 🠖 Previous Setting
2 Blink 1 / top-left 🠖 On
3 Blink 2 / top-right 🠖 On
4 Blink 3 / bottom-left 🠖 On
5 Blink 4 / bottom-right 🠖 On
6 1 / top-left On
7 2 / top-right On
8 3 / bottom-left On
9 4 / bottom-right On
10 Rotate
11 Blink based on previous setting
12 Slow blink based on previous setting
13 Rotate with two lights
14 Persistent slow all blink
15 Blink Once 🠖 previous setting



Events

The generic event device.


Example

fftest /dev/input/by-id/usb-*360*event*