Page 1 of 1

Gamepad(s) no longer working with r48 the "Cadmium" emulator

Posted: Tue Jan 14, 2025 11:18 pm
by olddb
Gamepad(s) no longer working with the 48 "Cadmium" emulator in Windows.

The SDL2.dll file used in the 48 "Cadmium" folder seems to be the problem.

Neither 32bit or 64bit seems to work.

Anyone can confirm this?

Re: Gamepad(s) no longer working with r48 the "Cadmium" emulator

Posted: Wed Jan 15, 2025 5:07 pm
by desertfish
I am not using the emulator on Windows so I cannot be of real help I am afraid but:
- did your game pad use to work on the previous version of the emulator?
- what do you mean with "SDL2.dll seems to be the problem" ?

Re: Gamepad(s) no longer working with r48 the "Cadmium" emulator

Posted: Wed Jan 15, 2025 8:02 pm
by jaydg
I'm using r48 on Win 11 and have not had any issues. Is it every game, your own games, just a single one game?

Re: Gamepad(s) no longer working with r48 the "Cadmium" emulator

Posted: Thu Jan 16, 2025 2:23 am
by olddb
desertfish wrote: Wed Jan 15, 2025 5:07 pm I am not using the emulator on Windows so I cannot be of real help I am afraid but:
- did your game pad use to work on the previous version of the emulator?
- what do you mean with "SDL2.dll seems to be the problem" ?
The game pad works on versions r46 and r47. I moved the SDL2.dll from r47 to the r48 folder and now the pad works.
jaydg wrote: I'm using r48 on Win 11 and have not had any issues. Is it every game, your own games, just a single one game?
In my own game. I'm using the joystick_scan and joystick_get sub routines.
jaydg wrote: I'm using r48 on Win 11 and have not had any issues
Good to know. Probably the issue its only on my machine. :)

Thank you for your replies.

Re: Gamepad(s) no longer working with r48 the "Cadmium" emulator

Posted: Thu Jan 16, 2025 1:58 pm
by jaydg
That really weird. Would wiping your install of the emulator and re-downloading it be too much hassle? Just curious if the dll was somehow corrupted by stray gamma rays from planet X3 🤔

Also, if you want a second machine to test some code or PRG, I'd be happy to do so if you can get it to me.

Also, can you create a new program from scratch with just gamepad functionality and see if it's reproducible?

Good luck!

Re: Gamepad(s) no longer working with r48 the "Cadmium" emulator

Posted: Thu Jan 16, 2025 6:34 pm
by desertfish
I don't know what sdl version the emulator ships with but what happens when you overwrite the sdl2.dll with the latest release from https://github.com/libsdl-org/SDL/relea ... se-2.30.11 ?

Re: Gamepad(s) no longer working with r48 the "Cadmium" emulator

Posted: Fri Jan 17, 2025 6:17 am
by olddb
jaydg wrote: Thu Jan 16, 2025 1:58 pm Also, if you want a second machine to test some code or PRG, I'd be happy to do so if you can get it to me.
Created a thread about my wip:
viewtopic.php?t=8234

Direct file download:
download/file.php?id=4086

It's cartridge file.

Please let me know if it works for you.

Thank you.

Re: Gamepad(s) no longer working with r48 the "Cadmium" emulator

Posted: Fri Jan 17, 2025 9:57 pm
by jaydg
Yes, I was able to move around with the gamepad. Y gave me an inventory (I assume it was.) Looks really cool!

Re: Gamepad(s) no longer working with r48 the "Cadmium" emulator

Posted: Sat Jan 18, 2025 9:01 pm
by olddb
jaydg wrote: Fri Jan 17, 2025 9:57 pm Yes, I was able to move around with the gamepad. Y gave me an inventory (I assume it was.) Looks really cool!
Thanks!