Sam Lantinga
Sam Lantinga
Sure, do you have a set of structures you'd like to hide?
I'm investigating trimming down SDL_Surface now, and opened a separate issue for SDL_DisplayMode in https://github.com/libsdl-org/SDL/issues/10198. SDL_AtomicInt we want to be static/global, and we won't touch SDL_hid_device_info, for source code compatibility...
Hmm, can you debug what's happening? I created a gamecontrollerdb.txt with the following lines: ``` 03000000b40400001224000000000000,Flydigi 2.4G B,platform:Windows,a:b1,b:b2,back:b11,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b0,leftshoulder:b7,leftstick:b13,lefttrigger:b9,leftx:a0,lefty:a1,misc1:b3,rightshoulder:b8,rightstick:b14,righttrigger:b10,rightx:a3,righty:a4,start:b12,x:b4,y:b5, 030029c5b40400001224000000000000,Flydigi 2.4G A,platform:Windows,a:b1,b:b2,back:b11,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b0,leftshoulder:b7,leftstick:b13,lefttrigger:b9,leftx:a0,lefty:a1,misc1:b3,rightshoulder:b8,rightstick:b14,righttrigger:b10,rightx:a3,righty:a4,start:b12,x:b4,y:b5, ``` No matter what order I put them in,...
This isn't expected behavior. As you see from my test above, the more specific mapping (Flydigit 2.4G A) is always selected, as expected. Can you reduce gamecontrollerdb.txt to just the...
Are you able to debug and find out why that is? If not, are you available to pair program over Zoom?
Interesting. I am able to reproduce this in SDL2, but not in SDL3. I'm investigating.
Sorry for the back and forth, it turns out this was fixed a while ago but the fix hadn't made it into the official release. It'll be in today's release,...
This is fixed in the latest release: https://github.com/libsdl-org/SDL/releases/tag/release-2.30.5
Can you try this patch? ```diff diff --git a/src/video/SDL_stretch.c b/src/video/SDL_stretch.c index fb97cf6f6..1778ccc04 100644 --- a/src/video/SDL_stretch.c +++ b/src/video/SDL_stretch.c @@ -35,9 +35,53 @@ int SDL_SoftStretch(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Rect full_src; SDL_Rect...
Great, thanks!