Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command: make script-binding command scalable #15316

Merged
merged 9 commits into from
Nov 27, 2024

Commits on Nov 18, 2024

  1. command: make script-binding command scalable

    script-binding command is currently not scalable, so script
    registered key bindings also cannot be scalable, unlink input.conf
    bindings.
    
    This makes script-binding command scalable so that it's possible to
    define scalable key bindings in scripts. It now calls script-message
    command with an extra argument with the scale of the key.
    na-na-hi committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    795a497 View commit details
    Browse the repository at this point in the history
  2. defaults.lua: support scalable mp.add_key_binding()

    For complex key bindings, the table now contains a new member
    of the current key scale. mp.add_key_binding() now accepts the
    scalable flag to make the binding scalable.
    na-na-hi committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    4ad9e58 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0fac89b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cf1fe9b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    60b1483 View commit details
    Browse the repository at this point in the history
  6. DOCS/man/input.rst: document that WHEEL_* are scalable

    This documents the scalable keys (currently WHEEL_*) and notes
    how the keys work with scalable commands. Mention touch pad
    as a common source of scalable input source.
    na-na-hi committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    3604497 View commit details
    Browse the repository at this point in the history
  7. command: add custom arg for script-binding

    This allows passing arbitrary information in the script-binding
    command. The content is available as a new message argument.
    na-na-hi committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    66a8a2c View commit details
    Browse the repository at this point in the history
  8. defaults.lua: support custom arg in mp.add_key_binding()

    The information is available in the table.
    na-na-hi committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    6d880a6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    947b7a5 View commit details
    Browse the repository at this point in the history