1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 22:30:22 +00:00
mpv/input
wm4 3e1aed8f40 input: add key name to script-binding command response
The "script-binding" command is used by the Lua scripting wrapper to
register key bindings on the fly. It's also the only way to get fine-
grained information about key events (such as separate key up/down
events). This information is sent via a "key-binding" message when the
state of a key changes.

Extend it to send name of the mapped key itself. Previously, it was
assumed that the user just uses an unique identifier for the binding's
name, so it wasn't needed. With this change, a user can map exactly the
same command to multiple keys, which is useful especially with the next
commit.

Part of #2612.
2015-12-23 19:10:48 +01:00
..
cmd_list.c command: make "add <property> 0" not change the value 2015-09-10 14:15:48 +02:00
cmd_list.h command: add a command for defining input bindings 2015-08-06 00:16:45 +02:00
cmd_parse.c input: add key name to script-binding command response 2015-12-23 19:10:48 +01:00
cmd_parse.h
event.c player: rename and move find_subfiles.c 2015-09-20 18:05:06 +02:00
event.h input: add append argument to file drop event 2015-08-30 05:28:24 -07:00
input.c input: add key name to script-binding command response 2015-12-23 19:10:48 +01:00
input.h input: add key name to script-binding command response 2015-12-23 19:10:48 +01:00
ipc.c ipc: fix undefined behavior in some error cases 2015-07-06 00:08:29 +02:00
keycodes.c input: rename recently added HALF_SPACE 2015-10-21 22:25:30 +02:00
keycodes.h
pipe-win32.c win32: input: use Vista CancelIoEx 2015-12-20 21:06:02 +11:00