gl_common: minor cleanup/refactor
[mplayer.git] / etc / input.conf
blob7b61344f7ff4f91c14b86454912b98f0afedd6e4
1 # MPlayer input control file
3 # You are able to redefine default keyboard/joystick/mouse/LIRC bindings, or
4 # add new ones here.
5 # See DOCS/tech/slave.txt for possible commands that can be bound.
6 # Also see mplayer -input cmdlist for other possible options.
7 # The file should be placed in the $HOME/.mplayer directory.
9 # If you wish to unbind a key, use key ignore.
10 # e.g. ENTER ignore
12 # Note that merely removing default key bindings from this file won't remove
13 # the default bindings mplayer was compiled with, unless
14 #   --input=nodefault-bindings
15 # is specified.
17 # Lines starting with # are comments. Use SHARP to assign the # key.
19 # Some characters need to be escaped. In particular, if you want to display
20 # a '\' character as part of an osd_show_property_text OSD message, you have to
21 # escape 2 times:
22 # key  osd_show_property_text "This is a single backslash: \\\\!"
24 # You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with
25 # modifiers Shift, Ctrl, Alt and Meta, but note that currently reading
26 # key combinations is only supported through the video windows of X-based
27 # output drivers (not in output windows of other drivers or in a terminal).
29 MOUSE_BTN0_DBL vo_fullscreen            # toggle fullscreen on/off
30 MOUSE_BTN2 pause                        # toggle pause on/off
31 MOUSE_BTN3 seek 10
32 MOUSE_BTN4 seek -10
33 MOUSE_BTN5 volume 1
34 MOUSE_BTN6 volume -1
36 # Seek units are in seconds, but note that these are limited by keyframes
37 RIGHT seek  10
38 LEFT  seek -10
39 UP    seek  60
40 DOWN  seek -60
41 # Do smaller, always exact (non-keyframe-limited), seeks with shift.
42 Shift+RIGHT seek  1 0 1
43 Shift+LEFT  seek -1 0 1
44 Shift+UP    seek  5 0 1
45 Shift+DOWN  seek -5 0 1
46 PGUP seek 600
47 PGDWN seek -600
48 + audio_delay 0.100                     # this changes audio/video sync
49 - audio_delay -0.100
50 [ speed_mult 0.9091                     # scale playback speed
51 ] speed_mult 1.1
52 { speed_mult 0.5
53 } speed_mult 2.0
54 BS speed_set 1.0                        # reset speed to normal
55 q quit
56 ESC quit
57 p pause                                 # toggle pause/playback mode
58 . frame_step                            # advance one frame and pause
59 SPACE pause
60 HOME pt_up_step 1
61 END pt_up_step -1
62 > pt_step 1                             # skip to next file
63 ENTER pt_step 1 1                       # skip to next file or quit
64 < pt_step -1                            # skip to previous file
65 INS alt_src_step 1
66 DEL alt_src_step -1
67 o osd                                   # cycle through OSD mode
68 I osd_show_property_text "${filename}"  # display filename in osd
69 P osd_show_progression
70 z sub_delay -0.1                        # subtract 100 ms delay from subs
71 x sub_delay +0.1                        # add
72 g sub_step -1                           # immediately display next subtitle
73 y sub_step +1                           #                     previous
74 9 volume -1
75 / volume -1
76 0 volume 1
77 * volume 1
78 ( balance -0.1                          # adjust audio balance in favor of left
79 ) balance 0.1                           #                                  right
80 m mute
81 1 contrast -1
82 2 contrast 1
83 3 brightness -1
84 4 brightness 1
85 5 hue -1
86 6 hue 1
87 7 saturation -1
88 8 saturation 1
89 d frame_drop                            # cycle through framedrop modes
90 # toggle deinterlacer; requires either vdpau output, -vf yadif or kerndeint
91 D step_property_osd deinterlace
92 c step_property_osd colormatrix
93 # Next 3 currently only work with --no-ass
94 r sub_pos -1                            # move subtitles up
95 t sub_pos +1                            #                down
96 a sub_alignment
97 v sub_visibility
98 # stretch SSA/ASS subtitles with anamorphic videos to match historical
99 V step_property_osd ass_vsfilter_aspect_compat
100 j sub_select                            # cycle through subtitles
101 J sub_select -3                         # ...backwards
102 F forced_subs_only
103 SHARP switch_audio                      # switch audio streams
104 _ step_property switch_video
105 TAB step_property switch_program
106 i edl_mark                              # for use with --edlout mode
107 T vo_ontop                              # toggle video window ontop of other windows
108 f vo_fullscreen                         # toggle fullscreen
109 C step_property_osd capturing
110 s screenshot 0                          # take a png screenshot
111 S screenshot 1                          # ...on every frame
112 Alt+s screenshot 0 1                    # take a screenshot of window contents
113 Alt+S screenshot 1 1                    # ...on every frame
114 w panscan -0.1                          # zoom out with -panscan 0 -fs
115 e panscan +0.1                          #      in
116 POWER quit
117 MENU osd
118 PLAY pause
119 PAUSE pause
120 PLAYPAUSE pause
121 STOP quit
122 FORWARD seek 60
123 REWIND seek -60
124 NEXT pt_step 1
125 PREV pt_step -1
126 VOLUME_UP volume 1
127 VOLUME_DOWN volume -1
128 MUTE mute
129 CLOSE_WIN quit
130 ! seek_chapter -1                       # skip to previous chapter
131 @ seek_chapter 1                        #         next
132 A switch_angle 1
133 U stop
135 # TV
136 h tv_step_channel 1
137 k tv_step_channel -1
138 n tv_step_norm
139 u tv_step_chanlist
140 X step_property teletext_mode 1
141 W step_property teletext_page 1
142 Q step_property teletext_page -1
145 # DVDNAV
146 # Requires dvdnav://
149 KP8     dvdnav up
150 KP2     dvdnav down
151 KP4     dvdnav left
152 KP6     dvdnav right
153 KP5     dvdnav menu
154 KP_ENTER dvdnav select
155 MOUSE_BTN0 dvdnav mouse
156 KP7     dvdnav prev
159 # Apple Remote section
162 AR_PLAY pause
163 AR_PLAY_HOLD quit
164 AR_NEXT seek 30
165 AR_NEXT_HOLD seek 120
166 AR_PREV seek -10
167 AR_PREV_HOLD seek -120
168 AR_MENU osd
169 AR_MENU_HOLD mute
170 AR_VUP volume 1
171 AR_VDOWN volume -1
174 # Joystick section
175 # WARNING: joystick support has to be explicitly enabled at
176 #          compiletime with --enable-joystick
179 JOY_AXIS0_PLUS seek 10
180 JOY_AXIS0_MINUS seek -10
181 JOY_AXIS1_MINUS seek 60
182 JOY_AXIS1_PLUS seek -60
183 JOY_BTN0 pause
184 JOY_BTN1 osd
185 JOY_BTN2 volume 1
186 JOY_BTN3 volume -1
189 # Not assigned by default
190 # (not an exhaustive list of unbound commands)
193 #? sub_scale +0.1                       # increase subtitle font size
194 #? sub_scale -0.1                       # decrease subtitle font size