Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
39 user(s) are online (30 user(s) are browsing Forums)

Members: 0
Guests: 39

more...

Headlines

 
  Register To Post  

« 1 ... 61 62 63 (64)
Re: SDL2
Home away from home
Home away from home


See User information
@Capehill
Did our SDL2 already distributed with our gamecontrollerdb.txt ? Or should be separately as it now ?

Go to top
Re: SDL2
Just can't stay away
Just can't stay away


See User information

Go to top
Re: SDL2
Home away from home
Home away from home


See User information
@Capehill
Looks good , but how it handled from developers pov? I mean for example i have that in code:

// Init joystick subsystem
    
{
        
SDL_Init(SDL_INIT_GAMECONTROLLER);
        
auto gamecontrollerdbPath8 = (dataPath "System" "gamecontrollerdb.txt").u8string();
        if (-
== SDL_GameControllerAddMappingsFromFile((const char*)gamecontrollerdbPath8.c_str()))
        {
            
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_WARNING"Cro-Mag Rally""Couldn't load gamecontrollerdb.txt!"gSDLWindow);
        }
    }



Is our OS4 version of SDL2, when find SDL_GameControllerAddMappingsFromFile() call, add in the memory our amigaos4 things and we have no needs for special amigaos4 ifdefs in the code of game ?

Go to top
Re: SDL2
Home away from home
Home away from home


See User information
@Capehill
Tested, just added my string to file you point out and recompile SDL2 with make it works ! Cool !


Edited by kas1e on 2022/10/3 10:12:55
Edited by kas1e on 2022/10/3 10:25:55
Go to top
Re: SDL2
Quite a regular
Quite a regular


See User information
@kas1e

IIRC you can have gamecontrollerdb.txt on game drawer and it will be read for game (if such code is).
Add your joypad/gamepad/joystick config/line to gamecontrollerdb.txt and it should auto-magically be added to the game.

IMHO gamecontrollerdb.txt should be on SYS:Devs and then all games that support SDL2/gamecontrollerdb.txt would read and add such controllers to games/apps.

Go to top
Re: SDL2
Home away from home
Home away from home


See User information
@Javier
Yeah, manual adding works too too

Quote:

IMHO gamecontrollerdb.txt should be on SYS:Devs and then all games that support SDL2/gamecontrollerdb.txt would read and add such controllers to games/apps.


It's small enough and already inside of SDL2 as Capehill point out: and i tested, even if game's code read mapping from external gamecontrollerdb.txt, having mapping inside of SDL2 did the trick as well.

I mean, our gamecontrollerdb.txt is small enough, and can be as it now be in SDL2 itself too.

Go to top
Re: SDL2
Quite a regular
Quite a regular


See User information
@kas1e

AFAIK it already embedded when you build SDL2.

https://www.amigans.net/modules/newbb/viewtopic.php?topic_id=8246

Go to top
Re: SDL2
Home away from home
Home away from home


See User information
@javier
Yeah, already checked that all your finding inside of SDL2 (capehill point out me few posts above to that part). Just my one wasn't before that why my gamepad not works

Go to top
Re: SDL2
Home away from home
Home away from home


See User information
@Capehill
I create pool request to SDL2 with new mapping for Logitech Dual F310 one, if you can approve it plz.

Go to top
Re: SDL2
Not too shy to talk
Not too shy to talk


See User information
@all

I know they are seperate, but would it be possible to have a complete SDL2 Developer Suite with SDL2_Mixer, SDL2_Image, e.t.c for both clib2 and newlib ?

I already compiled SDL_Mixer for clib2, but I am still having problems with Modplug, Mikmod .

It would be great if we can use the same libraries and SDK for SDL2 based ports ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: SDL2
Home away from home
Home away from home


See User information
@Sinan
Imagine the work to be done for anyone handling such a beast. SDL_Mixer alone need mikmod, flac, ogg and vorbis libs. SDL2_Image need png, jpeg, webp and co libs. Everything should be in sync, and all the time updated. Person who will handle it, will be driven to madness and burnout fast :) That why we have os4depot, where every 3d party deps separated. IMHO there no problems to download necessary archive and put it to SDK, but that only IMHO of course.

Go to top
Re: SDL2
Just can't stay away
Just can't stay away


See User information
2.24.0 RC2 is available: https://github.com/AmigaPorts/SDL-2.0/ ... /tag/v2.24.0-rc2-amigaos4

Changes:
- Add more game controller mappings
- Add SDL_GetPreferredLocales support, currently hard-coded to en_GB
- Fix a crash issue due to missing nullptr check

Go to top
Re: SDL2
Home away from home
Home away from home


See User information
@Capehill

Compiles fine with ScummVM (full build, no issues)

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
Go to top
Re: SDL2
Home away from home
Home away from home


See User information
@Capehill

New mapping to add:
-------------------
Type: PlayStation 2 like pad
Manufactured: MY-POWER CO.,LTD

32496e3120555342204a6f7973746963,2In1 USB Joystick,platform:AmigaOS4,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:-a1,dpdown:+a1,dpleft:-a0,dpright:+a0,-leftx:h0.8,+leftx:h0.2,-lefty:h0.1,+lefty:h0.4,lefttrigger:b6,righttrigger:b7,

Go to top

  Register To Post
« 1 ... 61 62 63 (64)

 




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




Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project