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

I have an issue with mapping controls. #16400

Open
2 of 5 tasks
Zombie-Ryushu opened this issue Nov 19, 2022 · 13 comments
Open
2 of 5 tasks

I have an issue with mapping controls. #16400

Zombie-Ryushu opened this issue Nov 19, 2022 · 13 comments

Comments

@Zombie-Ryushu
Copy link

Game or games this happens in

Emulator core. Not specific toa game.

What area of the game / PPSSPP

Attempting to map certain buttons, Start, Select, circle, and R2 fails to map, on my MadCatz PS3 Fight Pad.

What should happen

The buttons should map correctly.

Logs

No response

Platform

Linux / BSD

Mobile phone model or graphics card

Nvidia.

PPSSPP version affected

1.12.3~git20211114-lp153

Last working version

No response

Graphics backend (3D API)

OpenGL / GLES

Checklist

  • Test in the latest git build in case it's already fixed.
  • Search for other reports of the same issue.
  • Try resetting settings or older versions and include if the issue is related.
  • Try without any cheats and without loading any save states.
  • Include logs or screenshots of issue.
@unknownbrackets
Copy link
Collaborator

This is probably an issue in SDL_gamecontrollerdb, where the values your controller sends are not appropriately mapped.

See for example: https://generalarcade.com/gamepadtool/

-[Unknown]

@Zombie-Ryushu
Copy link
Author

This is not about auto-config, its that the emulator literally is not registering certain button presses on the Game pad.

@unknownbrackets
Copy link
Collaborator

It only gets events about ones in the SDL gamecontrollerdb mapping, as far as I know. This has been an issue for other controllers and people have made corrections to the gamecontrollerdb data to make them work.

-[Unknown]

@Zombie-Ryushu
Copy link
Author

I've installed SDL Controllerdb, and established the real problem. One of my repos upgrades SDL to 2.24, and thats the source of this Glitch. ppsspp was only compiled to support version 2.0.8

@unknownbrackets
Copy link
Collaborator

Where are you even getting your build from? You said "1.12.3~git20211114-lp153" which isn't a build number syntax I think we even use?

You can just compile it, it's made to be easy to compile.

https://github.com/hrydgard/ppsspp/wiki/Build-instructions#building-with-cmake-other-platforms-eg-linux

-[Unknown]

@Zombie-Ryushu
Copy link
Author

OpenSuse's Native Repos. However, I have a third party Repo for games and emulators.

@unknownbrackets
Copy link
Collaborator

Alright, well 1.13.2 is the latest stable version (released 2022-07-26), and git builds already have ~2000 commits since then. The version you're using is pretty old, but I'm not sure we've had to make any SDL changes recently except related to Wayland and laptop trackpads.

I think our macOS builds ship with 2.0.16, though.

-[Unknown]

@Zombie-Ryushu
Copy link
Author

Info: We compiled against SDL version 2.0.8, but we are linking against SDL version 2.24.2., be aware that this can lead to unexpected behaviors
ThreadManager::Init(compute threads: 4, all: 8)
51:03:217 Core/Config.cpp:627 I[G3D]: Longest display side: -1 pixels. Choosing scale 1

@unknownbrackets
Copy link
Collaborator

We is probably the wrong word for that log statement. But anyway, that's probably not the cause of your controller issues - I'm just not sure. The best way to be sure is to simply compile the latest build.

Normally people have submitted a pull request to the copy of the database: #9902, #15594, #13838, #12200, #11327, etc. #10181 is probably another great example. See #8993 for more detail from 2016 when this was introduced.

I do feel like it'd be nice if there was a way to add missing mappings directly from PPSSPP, but no one has submitted that pull request yet.

-[Unknown]

@Zombie-Ryushu
Copy link
Author

I installed SDL_gamecontrollerdb, and I created a profile for my controller.

@anr2me
Copy link
Collaborator

anr2me commented Nov 20, 2022

On https://github.com/gabomdq/SDL_GameControllerDB readme.md there is this:

The database is compatible with SDL v2.0.10 and newer. Older SDL versions are no longer supported.

Is this v2.0.10 related to linked SDL version or was it compiled version?

@Zombie-Ryushu
Copy link
Author

On https://github.com/gabomdq/SDL_GameControllerDB readme.md there is this:

The database is compatible with SDL v2.0.10 and newer. Older SDL versions are no longer supported.

Is this v2.0.10 related to linked SDL version or was it compiled version?

It is linked to OpenSuse 2.0.8 because Builds that come from the OpenSuse Build farm, do not include OpenSuse Games repo, which contains the libSDL update.

@Sanaki
Copy link

Sanaki commented Aug 4, 2023

I just encountered this myself. While I understand submitting updated profiles is a good approach, why not add a filepath where extra SDL2 controller profiles can be loaded from? In my case I added mine to .bashrc as an env var (since I always start PPSSPP from terminal), but it would be much simpler to have something like PSP/SYSTEM/sdl2profiles.ini able to contain individual configurations to be loaded at runtime without needing an updated overall database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants