summaryrefslogtreecommitdiffstats
path: root/audio/out
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2019-10-22 16:41:19 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2019-10-23 09:40:30 +0200
commit899e0bd16bcf80b0a1badbafeb83d3f474f24261 (patch)
treea9adca33672534629d9af5bfcc01834fd5c382dc /audio/out
parent79b15f50e31d62b50d1c20160fa7ec489d3b05e5 (diff)
downloadmpv-899e0bd16bcf80b0a1badbafeb83d3f474f24261.tar.bz2
mpv-899e0bd16bcf80b0a1badbafeb83d3f474f24261.tar.xz
input: add gamepad support through SDL2
The code is very basic: - only handles gamepads, could be extended for generic joysticks in the future. - only has button mappings for controllers natively supported by SDL2. I heard more can be added through env vars, there's also ways to load mappings from text files, but I'd rather not go there yet. Common ones like Dualshock are supported natively. - analog buttons (TRIGGER and AXIS) are mapped to discrete buttons using an activation threshold. - only supports one gamepad at a time. the feature is intented to use gamepads as evolved remote controls, not play multiplayer games in mpv :)
Diffstat (limited to 'audio/out')
-rw-r--r--audio/out/ao.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c
index 817aa29399..1b89e3c591 100644
--- a/audio/out/ao.c
+++ b/audio/out/ao.c
@@ -82,7 +82,7 @@ static const struct ao_driver * const audio_out_drivers[] = {
#if HAVE_OPENSLES
&audio_out_opensles,
#endif
-#if HAVE_SDL2
+#if HAVE_SDL2_AUDIO
&audio_out_sdl,
#endif
#if HAVE_SNDIO