mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
899e0bd16b
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 :)
5 lines
126 B
Plaintext
5 lines
126 B
Plaintext
GAMEPAD_RIGHT_STICK_LEFT seek -10
|
|
GAMEPAD_RIGHT_STICK_RIGHT seek 10
|
|
GAMEPAD_LEFT_TRIGGER seek -1
|
|
GAMEPAD_RIGHT_TRIGGER seek 1
|