PicoMiteVGAUSB: What gamepads are supported ?


Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4196
Posted: 04:56pm 02 Feb 2025      

Before you reinvent the wheel Peter can you read the USB device's GUID or is that specific to particular OS / driver implementations ?

SDL has a standard mapping somewhat like you propose, e.g. for my Buffalo gamepad it is:
"0300c2f8830500006020000010010000,iBuffalo SNES Controller,a:b0,b:b1,back:b6,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b7,x:b2,y:b3,hint:SDL_GAMECONTROLLER_USE_BUTTON_LABELS:=1,platform:Linux"


And there are graphical tools that allow a user to generate these for any attached controller by pressing the buttons when prompted.

So if this were portable ...

Best wishes,

Tom
Edited 2025-02-03 02:57 by thwill