From 899e0bd16bcf80b0a1badbafeb83d3f474f24261 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 22 Oct 2019 16:41:19 +0200 Subject: 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 :) --- DOCS/man/options.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'DOCS/man') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index f9516d1787..e147883f29 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -3407,6 +3407,9 @@ Input (OS X only) Enable/disable Apple Remote support. Enabled by default (except for libmpv). +``--input-gamepad=`` + Enable/disable SDL2 Gamepad support. Enabled by default (except for libmpv). + ``--input-cursor``, ``--no-input-cursor`` Permit mpv to receive pointer events reported by the video output driver. Necessary to use the OSC, or to select the buttons in DVD menus. -- cgit v1.2.3