mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
26.76k stars 2.84k forks source link

A way to disable a command's repeatability (I need it for volume) #14165

Closed KonoVitoDa closed 1 month ago

KonoVitoDa commented 1 month ago

Expected behavior of the wanted feature

I would like that a prefix like not-repeatable existed, so I could add it to the volume keybind. I'm using a Xbox One Controller and I tried to use its _GAMEPAD_LEFTSTICK and _GAMEPAD_LEFTTRIGGER to control the volume, but even when I do a light click on them, it will act like I was holding them, so the volume goes to 0%/100% when I just wanted to increase a few volume steps.

Alternative behavior of the wanted feature

No response

Log File

No response

Sample Files

No response

KonoVitoDa commented 1 month ago

Thanks for the fast solution! A funny thing is that I found this erratic behavior of my controller only occurs via Bluetooth; when it's connected through the cable or the Microsoft adapter, it works fine.

na-na-hi commented 1 month ago

A funny thing is that I found this erratic behavior of my controller only occurs via Bluetooth

It's a controller or driver problem. I couldn't reproduce that behavior with my setup. But this prefix makes sense so I added it anyway.