@Lio, TSK ptitSeb made some changes in joystick's related code, so maybe all will be fine now. There was also some amigaos4 specific big-endian issues fixed, so plz test this out:
@Lio Good. Through probably it works for you as old joystick api interface from old times (hydra castle labyrinth have supported both apis: old one and new one), while ptitSeb will add to frickingshark support only new gamecontrollers api interface (have support old ones time consuming and harder)
Which mean, that probably for your joystick we will need an entry for sdl2 in gamecontrollers database, with which i hope Capehill can help us.
@Capehill Is there anything we can run already, so we can send you necessary info to be added to gamecontroller's database ?
@TSK Is new version works for you on competition pro ? (your joystick probably will be use gamecontrollers api, so if it works, then that will be good too)
13.RAM Disk:SDL_joystick_test> testjoystick -h INFO: There are 0 joysticks attached INFO: Couldn't open joystick 0: There are 0 joysticks available 13.RAM Disk:SDL_joystick_test> testgamecontroller INFO: Supported mappings: INFO: 53504545442d4c494e4b20436f6d7065,SPEED-LINK Competition Pro,platform:AmigaOS 4,x:b2,a:b0,b:b1,y:b3,rightx:a0,righty:a1, INFO: INFO: There are 0 game controller(s) attached (0 joystick(s))
He has to make sure that joystick is really visible in AmigaInput prefs. My Comp Pro wasn't visible after power up, for whatever reason, in AI prefs. After replugging joystick, it appeared in the prefs and could be used.
If joystick is visible in AI prefs but SDL doesn't recognize it, then something must be wrong.
Using the tool to test my PlayStation 2 pad (with USB adaptor) but i got this result:
3.RAM Disk:SDL_joystick_test> testjoystick -h INFO: There are 0 joysticks attached INFO: Couldn't open joystick 0: There are 0 joysticks available 3.RAM Disk:SDL_joystick_test> testgamecontroller INFO: Supported mappings: INFO: 53504545442d4c494e4b20436f6d7065,SPEED-LINK Competition Pro,platform:AmigaOS 4,x:b2,a:b0,b:b1,y:b3,rightx:a0,righty:a1, INFO: INFO: There are 0 game controller(s) attached (0 joystick(s))
This pad always worked on my system, just configured with AmigaInput and used now with FinalBurn
I see now that testjoystick binaries compiled shared, so they use libsdl2.so , which mean that users have old one from os4depot, which of course will not works as there was lots of changes.
@Capehill Probabaly to avoid any issues that joystick tests binaries need to be compiled statically, so everyone can run it and does not matter what libsdl2.so he have.
@Capehill Compiled static builds of all those joystick binaries, and they runs fine on me now.
Tested only the first one one (Ritmix gp-001), that one seen in the amigainput, as well as when i run tes joystick binaries i have that:
Quote:
6/0.RAM Disk:1> testjoystick INFO: There are 1 joysticks attached INFO: Joystick 0: usb gamepad INFO: type: Game Controller INFO: axes: 2 INFO: balls: 0 INFO: hats: 0 INFO: buttons: 10 INFO: instance id: 0 INFO: guid: 7573622067616d657061642020202020 INFO: VID/PID: 0x0000/0x0000
6/0.RAM Disk:1> testgamecontroller INFO: Supported mappings: INFO: 53504545442d4c494e4b20436f6d7065,SPEED-LINK Competition Pro,platform:AmigaOS 4,x:b2,a:b0,b:b1,y:b3,rightx:a0,righty: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: INFO: Joystick 0: usb gamepad (guid 7573622067616d657061642020202020, VID 0x0000, PID 0x0000) INFO: There are 0 game controller(s) attached (1 joystick(s))
6/0.RAM Disk:1>
Sadly that it has no Vendor Name, even notify window of USB when i connect it say just: Vendor: (empty) Produce: usb gamepad Class: 63B4D
Dunno how we can add it to database, if it has no vendor name ..
Is it possible to add to gamecontroller's database not with verndorname, but with vendor number for example ? Or name there only for information, and parsing for device to detect taken from the that "00da0000000000000000000000000000" string ?
ps. Probabaly we need to create juts another thread , where upload static binaries, so everyone can contribute their mappings + to have list of all pads/joysticks we test and which works or not.
Edited by kas1e on 2019/1/6 16:35:55 Edited by kas1e on 2019/1/6 16:44:56
ps. Probabaly we need to create juts another thread , where upload static binaries, so everyone can contribute their mappings + to have list of all pads/joysticks we test and which works or not.