Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
59 user(s) are online (50 user(s) are browsing Forums)

Members: 0
Guests: 59

more...

Support us!

Headlines

 
  Register To Post  

(1) 2 3 »
SDL2 gamecontroller database Needs You!!
Just can't stay away
Just can't stay away


See User information
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

2022.10.08: 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
Edited by jabirulo on 2022/10/3 12:31:02
Edited by jabirulo on 2022/10/8 10:20:32
Go to top
Re: SDL2 gamecontroller database Needs You!!
Home away from home
Home away from home


See User information
@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:

19.Development:Debugging/TestGamepad> testgamecontroller
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: There are 0 game controller(s) attached (0 joystick(s))

19.Development:Debugging/TestGamepad> controllermap 0 >>mapping
INFO: There are 0 joysticks attached
INFO: Couldn't open joystick 0: There are 0 joysticks available

19.Development:Debugging/TestGamepad>

Go to top
Re: SDL2 gamecontroller database Needs You!!
Just can't stay away
Just can't stay away


See User information
@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...

Go to top
Re: SDL2 gamecontroller database Needs You!!
Just can't stay away
Just can't stay away


See User information
@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.

Go to top
Re: SDL2 gamecontroller database Needs You!!
Just popping in
Just popping in


See User information
@Capehill

Quote:
Somebody mentioned earlier about some adapter that helped with PS4 (?) controller...


https://www.amigans.net/modules/xforum ... id=116672#forumpost116672

Go to top
Re: SDL2 gamecontroller database Needs You!!
Just popping in
Just popping in


See User information
@jabirulo

I perfomed the steps as written in README.NOW

Contents of the MAPPING file:

Quote:
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,dpd
wn:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,


However, step "4)Re-run testgamnecontroller"

prints:

Quote:
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))



Go to top
Re: SDL2 gamecontroller database Needs You!!
Home away from home
Home away from home


See User information
@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)...

Go to top
Re: SDL2 gamecontroller database Needs You!!
Just can't stay away
Just can't stay away


See User information
@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
Go to top
Re: SDL2 gamecontroller database Needs You!!
Just can't stay away
Just can't stay away


See User information
@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

Go to top
Re: SDL2 gamecontroller database Needs You!!
Not too shy to talk
Not too shy to talk


See User information
@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
Go to top
Re: SDL2 gamecontroller database Needs You!!
Not too shy to talk
Not too shy to talk


See User information
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, X5020, CDTV, CD32 , A500+ A500
OS4.1b / OS3.2b
Go to top
Re: SDL2 gamecontroller database Needs You!!
Quite a regular
Quite a regular


See User information
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 !

Go to top
Re: SDL2 gamecontroller database Needs You!!
Just can't stay away
Just can't stay away


See User information
@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))

Go to top
Re: SDL2 gamecontroller database Needs You!!
Just can't stay away
Just can't stay away


See User information
@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

Go to top
Re: SDL2 gamecontroller database Needs You!!
Not too shy to talk
Not too shy to talk


See User information
@jabirulo
great idea!

XEOX Pro Analog (Speedlink SL-6556-BK)

58454f582047616d6570616420534c2d,XEOX Gamepad SL-6556-BK,platform:AmigaOS 4,a:b0,b:b1,x:b2,y:b3,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,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,

Strike² (Speedlink SL-6535)

202055534220204a6f79737469636b20,USB  Joystick,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,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,


GeeekPi (SNES style digital gamepadVariant A (digital pad configures as left directional stick)

7573622067616d657061642020202020,usb gamepad,platform:AmigaOS 4,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftshoulder:b4,rightshoulder:b5,leftx:a0,lefty:a1,

GeeekPi (SNES style digital gamepadVariant 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.

Go to top
Re: SDL2 gamecontroller database Needs You!!
Just can't stay away
Just can't stay away


See User information
@Daytona675x

THX
Added/updated gamecontrollerdb.txt

Go to top
Re: SDL2 gamecontroller database Needs You!!
Just popping in
Just popping in


See User information
@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.

Go to top
Re: SDL2 gamecontroller database Needs You!!
Just can't stay away
Just can't stay away


See User information
@IamSONIC

Thanks, updated entry


BTW I did recompile cceleste too and was about to upload 1-2 days later, but you beat me

Go to top
Re: SDL2 gamecontroller database Needs You!!
Just popping in
Just popping in


See User information
@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.

Go to top
Re: SDL2 gamecontroller database Needs You!!
Just can't stay away
Just can't stay away


See User information
@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.

Go to top

  Register To Post
(1) 2 3 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project