etc/input.conf: make file contents match default key bindings

There were some slight differences between what input.conf mapped, and
what was in input.c def_cmd_binds[]. Make them match.

Add some minor documentation improvements in input.cfg.

Also remove double comments ('##'), because they were confusing.
This commit is contained in:
wm4 2012-01-17 02:49:27 +01:00 committed by Uoti Urpala
parent adf100cd49
commit f30bf73bf2
1 changed files with 146 additions and 100 deletions

View File

@ -1,35 +1,51 @@
## # MPlayer input control file
## MPlayer input control file #
## # You are able to redefine default keyboard/joystick/mouse/LIRC bindings, or
## You are able to redefine default keyboard/joystick/mouse/LIRC bindings, or # add new ones here.
## add new ones here. # See DOCS/tech/slave.txt for possible commands that can be bound.
## See DOCS/tech/slave.txt for possible commands that can be bound. # Also see mplayer -input cmdlist for other possible options.
## Also see mplayer -input cmdlist for other possible options. # The file should be placed in the $HOME/.mplayer directory.
## The file should be placed in the $HOME/.mplayer directory. #
## # If you wish to unbind a key, use key ignore.
## If you wish to unbind a key, use key ignore. # e.g. ENTER ignore
## e.g. ENTER ignore #
## # Note that merely removing default key bindings from this file won't remove
## You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with # the default bindings mplayer was compiled with, unless
## modifiers Shift, Ctrl, Alt and Meta, but note that currently reading # --input=nodefault-bindings
## key combinations is only supported through the video windows of X-based # is specified.
## output drivers (not in output windows of other drivers or in a terminal). #
# Lines starting with # are comments. Use SHARP to assign the # key.
#
# Some characters need to be escaped. In particular, if you want to display
# a '\' character as part of an osd_show_property_text OSD message, you have to
# escape 2 times:
# key osd_show_property_text "This is a single backslash: \\\\!"
#
# You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with
# modifiers Shift, Ctrl, Alt and Meta, but note that currently reading
# key combinations is only supported through the video windows of X-based
# output drivers (not in output windows of other drivers or in a terminal).
RIGHT seek +10 MOUSE_BTN0_DBL vo_fullscreen # toggle fullscreen on/off
MOUSE_BTN2 pause # toggle pause on/off
MOUSE_BTN3 seek 10
MOUSE_BTN4 seek -10
MOUSE_BTN5 volume 1
MOUSE_BTN6 volume -1
# Seek units are in seconds, but note that these are limited by keyframes
RIGHT seek 10
LEFT seek -10 LEFT seek -10
UP seek 60
DOWN seek -60 DOWN seek -60
UP seek +60
# Do smaller, always exact (non-keyframe-limited), seeks with shift. # Do smaller, always exact (non-keyframe-limited), seeks with shift.
Shift+Right seek +1 0 1 Shift+RIGHT seek 1 0 1
Shift+Left seek -1 0 1 Shift+LEFT seek -1 0 1
Shift+Down seek -5 0 1 Shift+UP seek 5 0 1
Shift+Up seek +5 0 1 Shift+DOWN seek -5 0 1
PGUP seek 600 PGUP seek 600
PGDWN seek -600 PGDWN seek -600
m mute + audio_delay 0.100 # this changes audio/video sync
# switch_audio # switch audio streams
+ audio_delay 0.100
= audio_delay 0.100
- audio_delay -0.100 - audio_delay -0.100
[ speed_mult 0.9091 # scale playback speed [ speed_mult 0.9091 # scale playback speed
] speed_mult 1.1 ] speed_mult 1.1
@ -38,25 +54,30 @@ m mute
BS speed_set 1.0 # reset speed to normal BS speed_set 1.0 # reset speed to normal
q quit q quit
ESC quit ESC quit
ENTER pt_step 1 1 # skip to next file p pause # toggle pause/playback mode
p pause
. frame_step # advance one frame and pause . frame_step # advance one frame and pause
SPACE pause SPACE pause
HOME pt_up_step 1 HOME pt_up_step 1
END pt_up_step -1 END pt_up_step -1
> pt_step 1 # skip to next file > pt_step 1 # skip to next file
< pt_step -1 # previous ENTER pt_step 1 1 # skip to next file or quit
< pt_step -1 # skip to previous file
INS alt_src_step 1 INS alt_src_step 1
DEL alt_src_step -1 DEL alt_src_step -1
o osd o osd # cycle through OSD mode
I osd_show_property_text "${filename}" # display filename in osd I osd_show_property_text "${filename}" # display filename in osd
P osd_show_progression P osd_show_progression
z sub_delay -0.1 # subtract 100 ms delay from subs z sub_delay -0.1 # subtract 100 ms delay from subs
x sub_delay +0.1 # add x sub_delay +0.1 # add
g sub_step -1 # immediately display next subtitle
y sub_step +1 # previous
9 volume -1 9 volume -1
/ volume -1 / volume -1
0 volume 1 0 volume 1
* volume 1 * volume 1
( balance -0.1 # adjust audio balance in favor of left
) balance 0.1 # right
m mute
1 contrast -1 1 contrast -1
2 contrast 1 2 contrast 1
3 brightness -1 3 brightness -1
@ -65,54 +86,78 @@ x sub_delay +0.1 # add
6 hue 1 6 hue 1
7 saturation -1 7 saturation -1
8 saturation 1 8 saturation 1
( balance -0.1 # adjust audio balance in favor of left d frame_drop # cycle through framedrop modes
) balance +0.1 # right # toggle deinterlacer; requires either vdpau output, -vf yadif or kerndeint
d frame_drop D step_property_osd deinterlace
D step_property deinterlace # toggle deinterlacer, requires -vf yadif or kerndeint c step_property_osd colormatrix
# Next 3 currently only work with --no-ass
r sub_pos -1 # move subtitles up r sub_pos -1 # move subtitles up
t sub_pos +1 # down t sub_pos +1 # down
#? sub_step +1 # immediately display next subtitle a sub_alignment
#? sub_step -1 # previous v sub_visibility
#? sub_scale +0.1 # increase subtitle font size # stretch SSA/ASS subtitles with anamorphic videos to match historical
#? sub_scale -0.1 # decrease subtitle font size V step_property_osd ass_vsfilter_aspect_compat
V step_property_osd ass_vsfilter_aspect_compat # stretch SSA/ASS subtitles with anamorphic videos to match historical VSFilter behavior j sub_select # cycle through subtitles
f vo_fullscreen J sub_select -3 # ...backwards
F forced_subs_only
SHARP switch_audio # switch audio streams
_ step_property switch_video
TAB step_property switch_program
i edl_mark # for use with --edlout mode
T vo_ontop # toggle video window ontop of other windows T vo_ontop # toggle video window ontop of other windows
f vo_fullscreen # toggle fullscreen
C step_property_osd capturing
s screenshot 0 # take a png screenshot
S screenshot 1 # ...on every frame
Alt+s screenshot 0 1 # take a screenshot of window contents
Alt+S screenshot 1 1 # ...on every frame
w panscan -0.1 # zoom out with -panscan 0 -fs w panscan -0.1 # zoom out with -panscan 0 -fs
e panscan +0.1 # in e panscan +0.1 # in
s screenshot # take a png screenshot with -vf screenshot POWER quit
# S will take a png screenshot of every frame MENU osd
PLAY pause
PAUSE pause
PLAYPAUSE pause
STOP quit
FORWARD seek 60
REWIND seek -60
NEXT pt_step 1
PREV pt_step -1
VOLUME_UP volume 1
VOLUME_DOWN volume -1
MUTE mute
CLOSE_WIN quit
! seek_chapter -1 # skip to previous chapter
@ seek_chapter 1 # next
A switch_angle 1
U stop
# TV
h tv_step_channel 1 h tv_step_channel 1
l tv_step_channel -1 k tv_step_channel -1
n tv_step_norm n tv_step_norm
b tv_step_chanlist u tv_step_chanlist
X step_property teletext_mode 1
W step_property teletext_page 1
Q step_property teletext_page -1
## #
## Mouse section # DVDNAV
## # Requires dvdnav://
#
MOUSE_BTN0_DBL vo_fullscreen # toggle fullscreen on/off KP8 dvdnav up
MOUSE_BTN2 pause # toggle pause on/off KP2 dvdnav down
KP4 dvdnav left
KP6 dvdnav right
KP5 dvdnav menu
KP_ENTER dvdnav select
MOUSE_BTN0 dvdnav mouse
KP7 dvdnav prev
## #
## Joystick section # Apple Remote section
## WARNING: joystick support has to be explicitly enabled at #
## compiletime with --enable-joystick
##
JOY_RIGHT seek 10
JOY_LEFT seek -10
JOY_UP seek 60
JOY_DOWN seek -60
JOY_BTN0 pause
JOY_BTN1 osd
JOY_BTN2 volume 1
JOY_BTN3 volume -1
##
## Apple Remote section
##
AR_PLAY pause AR_PLAY pause
AR_PLAY_HOLD quit AR_PLAY_HOLD quit
@ -120,29 +165,30 @@ AR_NEXT seek 30
AR_NEXT_HOLD seek 120 AR_NEXT_HOLD seek 120
AR_PREV seek -10 AR_PREV seek -10
AR_PREV_HOLD seek -120 AR_PREV_HOLD seek -120
AR_MENU osd
AR_MENU_HOLD mute AR_MENU_HOLD mute
AR_VUP volume 1 AR_VUP volume 1
AR_VDOWN volume -1 AR_VDOWN volume -1
## #
## DVDNAV # Joystick section
## Requires dvdnav:// # WARNING: joystick support has to be explicitly enabled at
## # compiletime with --enable-joystick
#
UP {dvdnav} dvdnav up # DVDNav UP JOY_AXIS0_PLUS seek 10
DOWN {dvdnav} dvdnav down # DVDNav DOWN JOY_AXIS0_MINUS seek -10
LEFT {dvdnav} dvdnav left # DVDNav LEFT JOY_AXIS1_MINUS seek 60
RIGHT {dvdnav} dvdnav right # DVDNav RIGHT JOY_AXIS1_PLUS seek -60
ESC {dvdnav} dvdnav menu # DVDNav MENU JOY_BTN0 pause
ENTER {dvdnav} dvdnav select # DVDNav SELECT (ok) JOY_BTN1 osd
BS {dvdnav} dvdnav prev # DVDNav PREVIOUS menu (in the order chapter->title->root) JOY_BTN2 volume 1
JOY_BTN3 volume -1
AR_VUP {dvdnav} dvdnav up # DVDNav UP #
AR_VDOWN {dvdnav} dvdnav down # DVDNav DOWN # Not assigned by default
AR_PREV {dvdnav} dvdnav left # DVDNav LEFT # (not an exhaustive list of unbound commands)
AR_NEXT {dvdnav} dvdnav right # DVDNav RIGHT #
AR_MENU {dvdnav} dvdnav menu # DVDNav MENU
AR_PLAY {dvdnav} dvdnav select # DVDNav SELECT (ok)
#? seek_chapter -1 # skip to previous dvd chapter #? sub_scale +0.1 # increase subtitle font size
#? seek_chapter +1 # next #? sub_scale -0.1 # decrease subtitle font size