Details:
https://pico-8.fandom.com/wiki/Controllers
sample:
Code: Select all
00000000526574726f53746f6e653200,RetroStone2 Controle,a:b0,b:b1,x:b2,y:b3,dpdown:b11,dpleft:b12,dpright:b13,dpup:b10,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,back:b8,leftx:a0,lefty:a1,platform:Linux
Code: Select all
$ cat /proc/bus/input/devices
Code:
...
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="RetroStone2 Controle"
P: Phys=
S: Sysfs=/devices/virtual/input/input1
U: Uniq=
H: Handlers=js0 event1
B: PROP=0
B: EV=b
B: KEY=f 0 0 0 0 0 0 0 fdb0000 0 0 0 0 0 0 0 0 0
B: ABS=3