SDL2 Gamepad UUID?

Please check here for help solving common issues.
Post Reply
megashub
Posts: 3
Joined: Tue 16 Jun 2020 06:39

SDL2 Gamepad UUID?

Post by megashub » Wed 17 Jun 2020 21:42

I'm trying to determine what the device UUID is for the RS2 gamepad. This is in support of creating an SDL2 controller map for use with PICO-8. I'm working this with ROpi team too, but if anyone on the hardware side happens to have the information, or knows how to generate it, please let me know.

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
... it's that first string I need. The one above was provided by another user, and when I use it with PICO-8, none of the controls are recognized, suggesting I'm not identifying the device correctly.

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

Post Reply