Edited by jabirulo on 2020/6/12 14:04:18 Edited by jabirulo on 2020/10/3 11:03:25 Edited by jabirulo on 2022/10/3 12:31:02 Edited by jabirulo on 2022/10/8 10:20:32
19.Development:Debugging/TestGamepad> controllermap 0 >>mapping INFO: There are 0 joysticks attached INFO: Couldn't open joystick 0: There are 0 joysticks available
INFO: INFO: Joystick 0: MAGIC-NS (guid 4d414749432d4e530000000000000000, VID 0x0000, PID 0x0000, player index = -1) INFO: There are 0 game controller(s) attached (1 joystick(s))
Well, there was not a single word or mentioning in README.NOW that those controller also need to be usable with AmigaInput.
Had i known this i wouldn't have tried. I thought it is a somewhat new approach using SDL2 solely sidestepping AmigaInput (which never worked with any of my controllers anyway)...
My fault, sorry. Will update the README.NOW and add such requirement.
Added and upadte archive: "NOTE: The gamepad/joystick has to be detected by AmigaInput so it can be "detected" by SDL2 (SDL2 gamepad controller code uses amigainput resources)."
Competition Pro Amiga v2. AmigaInput shows it as having 12 buttons, but in reality it only has 4 buttons. I guess they use the circuit board in other products with more buttons.
INFO: Supported mappings: INFO: 53504545442d4c494e4b20436f6d7065,SPEED-LINK Competition Pro,platform:AmigaOS 4,a:b0,b:b1,x:b3,y:b2,leftx:a0,lefty:a1, INFO: 00da0000000000000000000000000000,*,a:b0,b:b1,back:b4,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b5,leftshoulder:b9,leftstick:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a2,righty:a3,start:b6,x:b2,y:b3, INFO: 47656e6572696320202055534220204a,Ewent Joypad EW3170,platform:AmigaOS 4,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,lefttrigger:b6,righttrigger:b7, INFO: 555342204a6f79737469636b20202020,SHARK 91230 Joystick,platform:AmigaOS 4,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,lefttrigger:b4,righttrigger:b5, INFO: INFO: Game Controller 0: SPEED-LINK Competition Pro (guid 53504545442d4c494e4b20436f6d7065, VID 0x0000, PID 0x0000, player index = -1) INFO: There are 1 game controller(s) attached (1 joystick(s))
My Thrustmaster Dual Analog 3 gives this : 5468727573746d617374657220647561,Thrustmaster dual analog 3.2,platform:AmigaOS 4,a:b0,b:b2,x:b1,y:b3,back:b8,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b6,dpup:h0.9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b5,righttrigger:b7,
it shows/list the devices in gamecontrollerdb.txt and the last 2 lines are, if detected, your gamepad: ... INFO: Game Controller 0: SPEED-LINK Competition Pro (guid 53504545442d4c494e4b20436f6d7065, VID 0x0000, PID 0x000... INFO: There are 1 game controller(s) attached (1 joystick(s))
GeeekPi (SNES style digital gamepad) Variant B (digital pad configures as POV hat)
7573622067616d657061642020202020,usb gamepad,platform:AmigaOS 4,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftshoulder:b4,rightshoulder:b5,dpup:-a1,dpdown:+a1,dpleft:-a0,dpright:+a0,
Note: The analogue stick detection didn't advance for the XEOX left stick when it asked for the right direction. Circling the stick helped.
The release of such a great Game like Celeste cannot be postponed
Since Controllers are working now i'll have a look at the fullscreen mode and maybe smt else. Will upload a new build soon.
In the meantime i thought about that "gamecontrollerdb.txt" Database stuff. It's a bit annoying if you want to use an 'unregistered' Controller within various SDL2 based Games. The necessity to edit it per Game/GameDirectory could be avoided by moving it to ENV: so having the database globally available for related games using it. Maybe as a fallback and/or option to override the global one, the Game could still look inside current Directory for one.
Yes I know is a bit annoying now to have such file zillion times on every SDL game/drawer, but IMO SDL should "manage" gamecontrollerdb.txt (maybe hardcoded such amigaos4 gamepads) or a global (DEVS: ENVARC: ...) drawer where to look for such drawer. You can change in the source path where to find/load such file.