|
SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/12 13:44
#1 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/2/6 13:57 From Donostia (SPAIN)
Posts: 598
|
Hi, if you want to help to get SDL2's AmigaOS4 gamescontroller database to grow, this is your thread
![]() First you need an USB gamepad/joystick attached to your NG Amiga. Now download the test archive and read instrucctions (README.NOW) how to proceed here: http://jabirulo.byethost13.com/temp/sdl2/gamepadtest.7z If you have questions, doubts, suggestions,... post'em here please. The aim, is to get as many gamepads mappings to add them to the gamecontrollerdb.txt or add them "inside" SDL2 controller list (for AmigaOS4). And as "gift" then you can play SDLPoP (Prince of persia) with your gamecontroller (hope so) ![]() http://jabirulo.byethost13.com/temp/pop/SDLPoP.7z THXALOT 2020.10.03: http://jabirulo.byethost13.com/temp/sdl2/gamecontrollerdb.txt Edited by jabirulo on 2020/6/12 14:04:18
Edited by jabirulo on 2020/10/3 11:03:25 |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/12 17:12
#2 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3974
|
@jabirulo
Doesn't work. I have tried three different USB controllers (BigBen PS3, Original PS3 and Original PS4 controller)...none is found or can be mapped. And the funny thing is, i hvae one crontroller that looks exactly like the one in controllermap.bmp Quote:
|
|
_________________
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg |
||
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/12 17:56
#3 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2007/7/14 21:30 From Lothric
Posts: 1243
|
@Raziel
If these pads don't work with AmigaInput, then they cannot be used by SDL either. Somebody mentioned earlier about some adapter that helped with PS4 (?) controller... |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/12 18:18
#4 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/2/6 13:57 From Donostia (SPAIN)
Posts: 598
|
@Raziel
As Capehill posted. Did they show up on AmigaInput prefs? SDL2 gamaecontroller uses amigainput resources in its code, so I'm afraid if not shown in AI prefs nothing can be done. |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/12 18:25
#5 |
---|---|---|
Just popping in
![]() ![]() Joined:
2009/6/11 2:19 From Germany
Posts: 103
|
@Capehill
Quote: Somebody mentioned earlier about some adapter that helped with PS4 (?) controller... https://www.amigans.net/modules/xforum ... id=116672#forumpost116672 |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/12 18:56
#6 |
---|---|---|
Just popping in
![]() ![]() Joined:
2009/6/11 2:19 From Germany
Posts: 103
|
@jabirulo
I perfomed the steps as written in README.NOW Contents of the MAPPING file: Quote: 4d414749432d4e530000000000000000,MAGIC-NS,platform:AmigaOS However, step "4)Re-run testgamnecontroller" prints: Quote: INFO: |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/12 22:10
#7 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3974
|
@jabirulo
@capehill 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)... |
|
_________________
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg |
||
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/13 10:56
#8 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/2/6 13:57 From Donostia (SPAIN)
Posts: 598
|
@Raziel
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)." Thx for testing/trying. Edited by jabirulo on 2020/6/13 11:11:33
|
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/13 11:03
#9 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/2/6 13:57 From Donostia (SPAIN)
Posts: 598
|
@IamSONIC
THX!!! -... 3)Edit gamecontrollerdb.txt file and add your "MAPPING" file contents at the end (#AmigaOS4) as I added my mapping data. ... Or just download and replace inside TestGamepad "gamecontrollerdb.txt" file. http://jabirulo.byethost13.com/temp/sdl2/gamecontrollerdb.txt |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/13 16:33
#10 |
---|---|---|
Just popping in
![]() ![]() Joined:
2012/7/16 18:57 From Istanbul
Posts: 162
|
@jabirulo
Here is the controllers that I tested.. I also have a XBox One Scorpio controller but it is not working with AmigaInput. 576972656c65737320436f6e74726f6c,Wireless Controller,platform:AmigaOS 4,a:b1,b:b2,x:b0,y:b3,back:b8,guide:b12,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,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7, 38426974646f20534e33302050726f20,8Bitdo SN30 Pro,platform:AmigaOS 4,a:b1,b:b0,x:b4,y:b3,back:b10,start:b11,leftstick:b13,rightstick:b14,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b8,righttrigger:b9, |
|
_________________
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex |
||
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/13 20:06
#11 |
---|---|---|
Not too shy to talk
![]() ![]() Joined:
2006/11/27 18:02 From Somerset, UK
Posts: 356
|
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)) Shows up as 3 devices is that right ? |
|
_________________
A1XE, A1200T, X1000, X5000, CDTV, CD32 & A500+ |
||
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/13 20:34
#12 |
---|---|---|
Not too shy to talk
![]() ![]() Joined:
2006/12/3 23:51 From France
Posts: 445
|
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, and working fine with SDLPoP ! |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/13 23:16
#13 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/2/6 13:57 From Donostia (SPAIN)
Posts: 598
|
@Jurassicc
THX for testing 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)) |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/13 23:18
#14 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/2/6 13:57 From Donostia (SPAIN)
Posts: 598
|
@Lio
THX (updated gamecontrollerdb.txt) And do the fire buttons work? IIRC there should be 3 different actions on fire buttons: jump, crouch and walk/small_steps |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/14 9:38
#15 |
---|---|---|
Not too shy to talk
![]() ![]() Joined:
2015/6/11 9:51 From Cologne
Posts: 435
|
@jabirulo
great idea!
XEOX Pro Analog (Speedlink SL-6556-BK)
Note: The analogue stick detection didn't advance for the XEOX left stick when it asked for the right direction. Circling the stick helped. |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/6/14 11:05
#16 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/2/6 13:57 From Donostia (SPAIN)
Posts: 598
|
@Daytona675x
THX Added/updated gamecontrollerdb.txt |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/9/29 20:17
#17 |
---|---|---|
Just popping in
![]() ![]() Joined:
2009/6/11 2:19 From Germany
Posts: 103
|
@jabirulo
Thank you for the code snippet you've pasted into the comments section of Celeste on OS4Depot. I was wondering why:
if (SDL_IsGameController(i)) {...
was failing even with my Controller already added some time ago to the gamecontrollerdb.txt. Anyway i executed "testgamecontroller" again and got a slightly different result than the one i've pasted earlier into this thread.
4d414749432d4e530000000000000000,MAGIC-NS,platform:AmigaOS 4,a:b2,b:b1,x:b3,y:b0,back:b8,guide:b12,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,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,
With the newly created mapping the controller works now as expected. |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/9/29 22:19
#18 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/2/6 13:57 From Donostia (SPAIN)
Posts: 598
|
@IamSONIC
Thanks, updated entry BTW I did recompile cceleste too and was about to upload 1-2 days later, but you beat me ![]() |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/9/29 23:43
#19 |
---|---|---|
Just popping in
![]() ![]() Joined:
2009/6/11 2:19 From Germany
Posts: 103
|
@jabirulo
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. |
|
|
Re: SDL2 gamecontroller database Needs You!! |
Posted on: 2020/9/30 12:44
#20 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2007/2/6 13:57 From Donostia (SPAIN)
Posts: 598
|
@IamSONIC
Here are my "changes" (created amigaos4 makefile, and added stack cookie and version string). BTW dunnot if compiled FIXEDP=1 makes a difference in speed/resources (http://jabirulo.byethost13.com/temp/cceleste/ccleste_src.7z) 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. |
|