Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdl2-compat replacement for sdl2 causes vita3k emulator not to use gyro data from HHD. #319

Open
Arceles opened this issue Feb 5, 2025 · 8 comments
Labels
Milestone

Comments

@Arceles
Copy link

Arceles commented Feb 5, 2025

I updated my arch system on 30th of January and noticed the replacement of sdl2 to sdl2-compat. I updated alright and I did not saw any immediate issues.

The system where I observed this is a Rog Ally using KDE and plasma wayland.
The symptoms are quite simple, try to start Mesen emulator and whereas it loads and shows menus, once a game is started does produce sound but does not display video (shows the background picture only)

Vita3K emulator cannot grab information from Gyro also. Reverting to SDL2 solves all these issues.

@slouken
Copy link
Collaborator

slouken commented Feb 5, 2025

What controller are you trying to get gyro information from?

@slouken slouken added this to the 2.30.54 milestone Feb 5, 2025
@icculus
Copy link
Collaborator

icculus commented Feb 5, 2025

The Mesen rendering issue is being tracked over in #262, but we'll leave this issue open for the gyro discussion.

@Arceles
Copy link
Author

Arceles commented Feb 5, 2025

The gyro information is provided by using hand held daemon, which gathers the internal gyro data from the rog ally. However, what it does is to simulate a dual sense edge controller which contains the gyro data from the ally and provides that information to any emulator that can use it.

@slouken slouken changed the title sdl2-compat replacement for sdl2 causes mesen emulator not to display video and vita3k emulator not to use gyro data from HHD. sdl2-compat replacement for sdl2 causes vita3k emulator not to use gyro data from HHD. Feb 5, 2025
@slouken
Copy link
Collaborator

slouken commented Feb 5, 2025

I'm trying with a real DualSense controller here and testing with the SDL testgamecontroller program and I'm getting gyro data just fine.

What output do you get from testgamecontroller on the ROG Ally?

@Arceles
Copy link
Author

Arceles commented Feb 5, 2025

The values move accordingly whenever I move the rog ally.
Image

@slouken
Copy link
Collaborator

slouken commented Feb 5, 2025

That's great. SDL includes testcontroller and sdl2-compat includes testgamecontroller, what is the output of those?

@Arceles
Copy link
Author

Arceles commented Feb 6, 2025

I gave you that output thinking that would be the same, but no. I have sdl2 installed but there is no testcontroller command that I can run from the terminal. Looking at the wiki:

Image

And the ouput does not show the gyro

Image

this is the list command

Image

@slouken
Copy link
Collaborator

slouken commented Feb 6, 2025

I don't think sdl2-jstest shows gyro data.

Can you follow these steps and show the output from each?

git clone https://github.com/libsdl-org/SDL
cd SDL
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DSDL_TESTS=ON ..
make -j10
sudo make install
test/testcontroller
git clone https://github.com/libsdl-org/sdl2-compat
cd sdl2-compat
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DSDL2COMPAT_TESTS=ON ..
make -j10
sudo make install
test/testgamecontroller

@slouken slouken modified the milestones: 2.30.54, 2.30.56 Feb 7, 2025
@slouken slouken added the waiting label Feb 7, 2025
@slouken slouken modified the milestones: 2.32.50, 2.32.52 Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants