Files
mpv/DOCS/interface-changes/mp-input-console-opts.txt
CogentRedTester 429fdcf21d mp.input: allow clients to override console.lua script-opts
This commit allows a table of script-opt overrides to be passed to
`mp.input.get()` and `mp.input.select()`, which console.lua will use
instead of the its own.

To minimise required changes, metatables are used to allow console.lua
to seamlessly fall back on the original script-opts if the client does
not provide an override.
To prevent exceptions, the incoming opts must be of the same type.
2026-03-07 12:31:50 +01:00

2 lines
81 B
Plaintext

add `console_opt_overrides` argument to `mp.input.get()` and `mp.input.select()`