FS#67174 - [sdl2] enable HIDAPI joystick drivers
Attached to Project:
Arch Linux
Opened by Alexandre Bouvier (doskoi) - Thursday, 02 July 2020, 06:23 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 04 November 2020, 00:32 GMT
Opened by Alexandre Bouvier (doskoi) - Thursday, 02 July 2020, 06:23 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 04 November 2020, 00:32 GMT
|
Details
* SDL include HIDAPI support for low level joystick
drivers
* For example the Official GameCube Controller Adapter for Wii U is supported in every app using SDL>=2.0.12 without needing an external driver like https://github.com/ToadKing/wii-u-gc-adapter (thanks to https://www.indiegogo.com/projects/wii-u-switch-gamecube-adapter-support-for-sdl2) * Adding -DHIDAPI=ON to the cmake command doesn't seems to enable anything sadly * It's working by reverting to configure: ../configure --prefix=/usr --disable-static --enable-sdl-dlopen --disable-arts --disable-esd --disable-nas --enable-alsa --enable-pulseaudio-shared --enable-video-wayland --disable-rpath --enable-clock_gettime --enable-jack-shared --enable-hidapi For information the SDL wiki (https://wiki.libsdl.org/Installation) says: "An (experimental!) alternative to the configure script is the CMake project file. [...] Driving that is left as an exercise for the reader." |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Wednesday, 04 November 2020, 00:32 GMT
Reason for closing: Implemented
Wednesday, 04 November 2020, 00:32 GMT
Reason for closing: Implemented
mame[454932]: segfault at 0 ip 0000000000000000 sp 00007ffe6f04c2d8 error 14 in mame[55b423826000+2a8e000]
Code: Bad RIP value.
blobby[455085]: segfault at 0 ip 0000000000000000 sp 00007ffc7ad88c08 error 14 in blobby[55dbe9bd8000+1e4000]
Code: Bad RIP value.
I recompiled sdl2-jstest against the new sdl2 build but it still crash the same way:
sdl2-jstest[458856]: segfault at 0 ip 0000000000000000 sp 00007ffdcce7cf88 error 14 in sdl2-jstest[5582acd1c000+2000]
Code: Bad RIP value.
There was no crash when I compiled sdl2 with the configure command.
namcap output for the cmake package:
sdl2 W: Dependency glibc included but already satisfied
sdl2 W: Dependency included and not needed ('libxext')
sdl2 W: Dependency included and not needed ('libxrender')
sdl2 W: Dependency included and not needed ('libx11')
sdl2 W: Dependency included and not needed ('libxcursor')
sdl2 W: Dependency included and not needed ('libibus')
sdl2 W: Dependency included and not needed ('hidapi')
namcap output for the configure package:
sdl2 W: Unused shared library '/usr/lib/librt.so.1' by file ('usr/lib/libSDL2-2.0.so.0.12.0')
sdl2 W: Dependency glibc included but already satisfied
sdl2 W: Dependency included and not needed ('libxext')
sdl2 W: Dependency included and not needed ('libxrender')
sdl2 W: Dependency included and not needed ('libx11')
sdl2 W: Dependency included and not needed ('libxcursor')
sdl2 W: Dependency included and not needed ('libibus')
sdl2 W: Dependency included and not needed ('hidapi')
Why you don't use it by the way? It seems to be the "official" way.