summaryrefslogtreecommitdiffstats
path: root/xbmc/input/ActionIDs.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/input/ActionIDs.h')
-rw-r--r--xbmc/input/ActionIDs.h310
1 files changed, 310 insertions, 0 deletions
diff --git a/xbmc/input/ActionIDs.h b/xbmc/input/ActionIDs.h
new file mode 100644
index 0000000..ce77ce0
--- /dev/null
+++ b/xbmc/input/ActionIDs.h
@@ -0,0 +1,310 @@
1/*
2 * Copyright (C) 2005-2017 Team Kodi
3 * http://kodi.tv
4 *
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this Program; see the file COPYING. If not, see
17 * <http://www.gnu.org/licenses/>.
18 *
19 */
20#pragma once
21
22/**
23 * \defgroup kodi_key_action_ids Action Id's
24 * \ingroup python_xbmcgui_window_cb
25 * \ingroup python_xbmcgui_action
26 * @{
27 * @brief Actions that we have defined.
28 */
29#define ACTION_NONE 0
30#define ACTION_MOVE_LEFT 1
31#define ACTION_MOVE_RIGHT 2
32#define ACTION_MOVE_UP 3
33#define ACTION_MOVE_DOWN 4
34#define ACTION_PAGE_UP 5
35#define ACTION_PAGE_DOWN 6
36#define ACTION_SELECT_ITEM 7
37#define ACTION_HIGHLIGHT_ITEM 8
38#define ACTION_PARENT_DIR 9
39#define ACTION_PREVIOUS_MENU 10
40#define ACTION_SHOW_INFO 11
41
42#define ACTION_PAUSE 12
43#define ACTION_STOP 13
44#define ACTION_NEXT_ITEM 14
45#define ACTION_PREV_ITEM 15
46#define ACTION_FORWARD 16 //!< Can be used to specify specific action in a window, Playback control is handled in ACTION_PLAYER_*
47#define ACTION_REWIND 17 //!< Can be used to specify specific action in a window, Playback control is handled in ACTION_PLAYER_*
48
49#define ACTION_SHOW_GUI 18 //!< toggle between GUI and movie or GUI and visualisation.
50#define ACTION_ASPECT_RATIO 19 //!< toggle quick-access zoom modes. Can b used in videoFullScreen.zml window id=2005
51#define ACTION_STEP_FORWARD 20 //!< seek +1% in the movie. Can b used in videoFullScreen.xml window id=2005
52#define ACTION_STEP_BACK 21 //!< seek -1% in the movie. Can b used in videoFullScreen.xml window id=2005
53#define ACTION_BIG_STEP_FORWARD 22 //!< seek +10% in the movie. Can b used in videoFullScreen.xml window id=2005
54#define ACTION_BIG_STEP_BACK 23 //!< seek -10% in the movie. Can b used in videoFullScreen.xml window id=2005
55#define ACTION_SHOW_OSD 24 //!< show/hide OSD. Can b used in videoFullScreen.xml window id=2005
56#define ACTION_SHOW_SUBTITLES 25 //!< turn subtitles on/off. Can b used in videoFullScreen.xml window id=2005
57#define ACTION_NEXT_SUBTITLE 26 //!< switch to next subtitle of movie. Can b used in videoFullScreen.xml window id=2005
58#define ACTION_BROWSE_SUBTITLE 247 //!< Browse for subtitle. Can be used in videofullscreen
59#define ACTION_PLAYER_DEBUG 27 //!< show debug info for VideoPlayer
60#define ACTION_NEXT_PICTURE 28 //!< show next picture of slideshow. Can b used in slideshow.xml window id=2007
61#define ACTION_PREV_PICTURE 29 //!< show previous picture of slideshow. Can b used in slideshow.xml window id=2007
62#define ACTION_ZOOM_OUT 30 //!< zoom in picture during slideshow. Can b used in slideshow.xml window id=2007
63#define ACTION_ZOOM_IN 31 //!< zoom out picture during slideshow. Can b used in slideshow.xml window id=2007
64#define ACTION_TOGGLE_SOURCE_DEST 32 //!< used to toggle between source view and destination view. Can be used in myfiles.xml window id=3
65#define ACTION_SHOW_PLAYLIST 33 //!< used to toggle between current view and playlist view. Can b used in all mymusic xml files
66#define ACTION_QUEUE_ITEM 34 //!< used to queue a item to the playlist. Can b used in all mymusic xml files
67#define ACTION_REMOVE_ITEM 35 //!< not used anymore
68#define ACTION_SHOW_FULLSCREEN 36 //!< not used anymore
69#define ACTION_ZOOM_LEVEL_NORMAL 37 //!< zoom 1x picture during slideshow. Can b used in slideshow.xml window id=2007
70#define ACTION_ZOOM_LEVEL_1 38 //!< zoom 2x picture during slideshow. Can b used in slideshow.xml window id=2007
71#define ACTION_ZOOM_LEVEL_2 39 //!< zoom 3x picture during slideshow. Can b used in slideshow.xml window id=2007
72#define ACTION_ZOOM_LEVEL_3 40 //!< zoom 4x picture during slideshow. Can b used in slideshow.xml window id=2007
73#define ACTION_ZOOM_LEVEL_4 41 //!< zoom 5x picture during slideshow. Can b used in slideshow.xml window id=2007
74#define ACTION_ZOOM_LEVEL_5 42 //!< zoom 6x picture during slideshow. Can b used in slideshow.xml window id=2007
75#define ACTION_ZOOM_LEVEL_6 43 //!< zoom 7x picture during slideshow. Can b used in slideshow.xml window id=2007
76#define ACTION_ZOOM_LEVEL_7 44 //!< zoom 8x picture during slideshow. Can b used in slideshow.xml window id=2007
77#define ACTION_ZOOM_LEVEL_8 45 //!< zoom 9x picture during slideshow. Can b used in slideshow.xml window id=2007
78#define ACTION_ZOOM_LEVEL_9 46 //!< zoom 10x picture during slideshow. Can b used in slideshow.xml window id=2007
79
80#define ACTION_CALIBRATE_SWAP_ARROWS 47 //!< select next arrow. Can b used in: settingsScreenCalibration.xml windowid=11
81#define ACTION_CALIBRATE_RESET 48 //!< reset calibration to defaults. Can b used in: `settingsScreenCalibration.xml` windowid=11/settingsUICalibration.xml windowid=10
82#define ACTION_ANALOG_MOVE 49 //!< analog thumbstick move. Can b used in: `slideshow.xml` windowid=2007/settingsScreenCalibration.xml windowid=11/settingsUICalibration.xml windowid=10
83 //!< @note see also ACTION_ANALOG_MOVE_X, ACTION_ANALOG_MOVE_Y
84#define ACTION_ROTATE_PICTURE_CW 50 //!< rotate current picture clockwise during slideshow. Can be used in slideshow.xml window id=2007
85#define ACTION_ROTATE_PICTURE_CCW 51 //!< rotate current picture counterclockwise during slideshow. Can be used in slideshow.xml window id=2007
86
87#define ACTION_SUBTITLE_DELAY_MIN 52 //!< Decrease subtitle/movie Delay. Can b used in videoFullScreen.xml window id=2005
88#define ACTION_SUBTITLE_DELAY_PLUS 53 //!< Increase subtitle/movie Delay. Can b used in videoFullScreen.xml window id=2005
89#define ACTION_AUDIO_DELAY_MIN 54 //!< Increase avsync delay. Can b used in videoFullScreen.xml window id=2005
90#define ACTION_AUDIO_DELAY_PLUS 55 //!< Decrease avsync delay. Can b used in videoFullScreen.xml window id=2005
91#define ACTION_AUDIO_NEXT_LANGUAGE 56 //!< Select next language in movie. Can b used in videoFullScreen.xml window id=2005
92#define ACTION_CHANGE_RESOLUTION 57 //!< switch 2 next resolution. Can b used during screen calibration settingsScreenCalibration.xml windowid=11
93
94#define REMOTE_0 58 //!< remote keys 0-9. are used by multiple windows
95#define REMOTE_1 59 //!< for example in videoFullScreen.xml window id=2005 you can
96#define REMOTE_2 60 //!< enter time (mmss) to jump to particular point in the movie
97#define REMOTE_3 61
98#define REMOTE_4 62 //!< with spincontrols you can enter 3digit number to quickly set
99#define REMOTE_5 63 //!< spincontrol to desired value
100#define REMOTE_6 64
101#define REMOTE_7 65
102#define REMOTE_8 66
103#define REMOTE_9 67
104
105#define ACTION_PLAY 68 //!< Unused at the moment
106#define ACTION_PLAYER_PROCESS_INFO 69 //!< show player process info (video decoder, pixel format, pvr signal strength and the like
107#define ACTION_SMALL_STEP_BACK 76 //!< jumps a few seconds back during playback of movie. Can b used in videoFullScreen.xml window id=2005
108
109#define ACTION_PLAYER_FORWARD 77 //!< FF in current file played. global action, can be used anywhere
110#define ACTION_PLAYER_REWIND 78 //!< RW in current file played. global action, can be used anywhere
111#define ACTION_PLAYER_PLAY 79 //!< Play current song. Unpauses song and sets playspeed to 1x. global action, can be used anywhere
112
113#define ACTION_DELETE_ITEM 80 //!< delete current selected item. Can be used in myfiles.xml window id=3 and in myvideoTitle.xml window id=25
114#define ACTION_COPY_ITEM 81 //!< copy current selected item. Can be used in myfiles.xml window id=3
115#define ACTION_MOVE_ITEM 82 //!< move current selected item. Can be used in myfiles.xml window id=3
116#define ACTION_TAKE_SCREENSHOT 85 //!< take a screenshot
117#define ACTION_RENAME_ITEM 87 //!< rename item
118
119#define ACTION_VOLUME_UP 88
120#define ACTION_VOLUME_DOWN 89
121#define ACTION_VOLAMP 90
122#define ACTION_MUTE 91
123#define ACTION_NAV_BACK 92
124#define ACTION_VOLAMP_UP 93
125#define ACTION_VOLAMP_DOWN 94
126
127#define ACTION_CREATE_EPISODE_BOOKMARK 95 //!< Creates an episode bookmark on the currently playing video file containing more than one episode
128#define ACTION_CREATE_BOOKMARK 96 //!< Creates a bookmark of the currently playing video file
129
130#define ACTION_CHAPTER_OR_BIG_STEP_FORWARD 97 //!< Goto the next chapter, if not available perform a big step forward
131#define ACTION_CHAPTER_OR_BIG_STEP_BACK 98 //!< Goto the previous chapter, if not available perform a big step back
132
133#define ACTION_CYCLE_SUBTITLE 99 //!< switch to next subtitle of movie, but will not enable/disable the subtitles. Can be used in videoFullScreen.xml window id=2005
134
135#define ACTION_MOUSE_START 100
136#define ACTION_MOUSE_LEFT_CLICK 100
137#define ACTION_MOUSE_RIGHT_CLICK 101
138#define ACTION_MOUSE_MIDDLE_CLICK 102
139#define ACTION_MOUSE_DOUBLE_CLICK 103
140#define ACTION_MOUSE_WHEEL_UP 104
141#define ACTION_MOUSE_WHEEL_DOWN 105
142#define ACTION_MOUSE_DRAG 106
143#define ACTION_MOUSE_MOVE 107
144#define ACTION_MOUSE_LONG_CLICK 108
145#define ACTION_MOUSE_END 109
146
147#define ACTION_BACKSPACE 110
148#define ACTION_SCROLL_UP 111
149#define ACTION_SCROLL_DOWN 112
150#define ACTION_ANALOG_FORWARD 113
151#define ACTION_ANALOG_REWIND 114
152
153#define ACTION_MOVE_ITEM_UP 115 //!< move item up in playlist
154#define ACTION_MOVE_ITEM_DOWN 116 //!< move item down in playlist
155#define ACTION_CONTEXT_MENU 117 //!< pops up the context menu
156
157// stuff for virtual keyboard shortcuts
158#define ACTION_SHIFT 118 //!< stuff for virtual keyboard shortcuts
159#define ACTION_SYMBOLS 119 //!< stuff for virtual keyboard shortcuts
160#define ACTION_CURSOR_LEFT 120 //!< stuff for virtual keyboard shortcuts
161#define ACTION_CURSOR_RIGHT 121 //!< stuff for virtual keyboard shortcuts
162
163#define ACTION_BUILT_IN_FUNCTION 122
164
165#define ACTION_SHOW_OSD_TIME 123 //!< displays current time, can be used in videoFullScreen.xml window id=2005
166#define ACTION_ANALOG_SEEK_FORWARD 124 //!< seeks forward, and displays the seek bar.
167#define ACTION_ANALOG_SEEK_BACK 125 //!< seeks backward, and displays the seek bar.
168
169#define ACTION_VIS_PRESET_SHOW 126
170#define ACTION_VIS_PRESET_NEXT 128
171#define ACTION_VIS_PRESET_PREV 129
172#define ACTION_VIS_PRESET_LOCK 130
173#define ACTION_VIS_PRESET_RANDOM 131
174#define ACTION_VIS_RATE_PRESET_PLUS 132
175#define ACTION_VIS_RATE_PRESET_MINUS 133
176
177#define ACTION_SHOW_VIDEOMENU 134
178#define ACTION_ENTER 135
179
180#define ACTION_INCREASE_RATING 136
181#define ACTION_DECREASE_RATING 137
182
183#define ACTION_NEXT_SCENE 138 //!< switch to next scene/cutpoint in movie
184#define ACTION_PREV_SCENE 139 //!< switch to previous scene/cutpoint in movie
185
186#define ACTION_NEXT_LETTER 140 //!< jump through a list or container by letter
187#define ACTION_PREV_LETTER 141
188
189#define ACTION_JUMP_SMS2 142 //!< jump direct to a particular letter using SMS-style input
190#define ACTION_JUMP_SMS3 143
191#define ACTION_JUMP_SMS4 144
192#define ACTION_JUMP_SMS5 145
193#define ACTION_JUMP_SMS6 146
194#define ACTION_JUMP_SMS7 147
195#define ACTION_JUMP_SMS8 148
196#define ACTION_JUMP_SMS9 149
197
198#define ACTION_FILTER_CLEAR 150
199#define ACTION_FILTER_SMS2 151
200#define ACTION_FILTER_SMS3 152
201#define ACTION_FILTER_SMS4 153
202#define ACTION_FILTER_SMS5 154
203#define ACTION_FILTER_SMS6 155
204#define ACTION_FILTER_SMS7 156
205#define ACTION_FILTER_SMS8 157
206#define ACTION_FILTER_SMS9 158
207
208#define ACTION_FIRST_PAGE 159
209#define ACTION_LAST_PAGE 160
210
211#define ACTION_AUDIO_DELAY 161
212#define ACTION_SUBTITLE_DELAY 162
213#define ACTION_MENU 163
214
215#define ACTION_SET_RATING 164
216
217#define ACTION_RECORD 170
218
219#define ACTION_PASTE 180
220#define ACTION_NEXT_CONTROL 181
221#define ACTION_PREV_CONTROL 182
222#define ACTION_CHANNEL_SWITCH 183
223#define ACTION_CHANNEL_UP 184
224#define ACTION_CHANNEL_DOWN 185
225#define ACTION_NEXT_CHANNELGROUP 186
226#define ACTION_PREVIOUS_CHANNELGROUP 187
227#define ACTION_PVR_PLAY 188
228#define ACTION_PVR_PLAY_TV 189
229#define ACTION_PVR_PLAY_RADIO 190
230#define ACTION_PVR_SHOW_TIMER_RULE 191
231
232#define ACTION_TOGGLE_FULLSCREEN 199 //!< switch 2 desktop resolution
233#define ACTION_TOGGLE_WATCHED 200 //!< Toggle watched status (videos)
234#define ACTION_SCAN_ITEM 201 //!< scan item
235#define ACTION_TOGGLE_DIGITAL_ANALOG 202 //!< switch digital <-> analog
236#define ACTION_RELOAD_KEYMAPS 203 //!< reloads CButtonTranslator's keymaps
237#define ACTION_GUIPROFILE_BEGIN 204 //!< start the GUIControlProfiler running
238
239#define ACTION_TELETEXT_RED 215 //!< Teletext Color button <b>Red</b> to control TopText
240#define ACTION_TELETEXT_GREEN 216 //!< Teletext Color button <b>Green</b> to control TopText
241#define ACTION_TELETEXT_YELLOW 217 //!< Teletext Color button <b>Yellow</b> to control TopText
242#define ACTION_TELETEXT_BLUE 218 //!< Teletext Color button <b>Blue</b> to control TopText
243
244#define ACTION_INCREASE_PAR 219
245#define ACTION_DECREASE_PAR 220
246
247#define ACTION_VSHIFT_UP 227 //!< shift up video image in VideoPlayer
248#define ACTION_VSHIFT_DOWN 228 //!< shift down video image in VideoPlayer
249
250#define ACTION_PLAYER_PLAYPAUSE 229 //!< Play/pause. If playing it pauses, if paused it plays.
251
252#define ACTION_SUBTITLE_VSHIFT_UP 230 //!< shift up subtitles in VideoPlayer
253#define ACTION_SUBTITLE_VSHIFT_DOWN 231 //!< shift down subtitles in VideoPlayer
254#define ACTION_SUBTITLE_ALIGN 232 //!< toggle vertical alignment of subtitles
255
256#define ACTION_FILTER 233
257
258#define ACTION_SWITCH_PLAYER 234
259
260#define ACTION_STEREOMODE_NEXT 235
261#define ACTION_STEREOMODE_PREVIOUS 236
262#define ACTION_STEREOMODE_TOGGLE 237 //!< turns 3d mode on/off
263#define ACTION_STEREOMODE_SELECT 238
264#define ACTION_STEREOMODE_TOMONO 239
265#define ACTION_STEREOMODE_SET 240
266
267#define ACTION_SETTINGS_RESET 241
268#define ACTION_SETTINGS_LEVEL_CHANGE 242
269
270#define ACTION_TRIGGER_OSD 243 //!< show autoclosing OSD. Can b used in videoFullScreen.xml window id=2005
271#define ACTION_INPUT_TEXT 244
272#define ACTION_VOLUME_SET 245
273#define ACTION_TOGGLE_COMMSKIP 246
274
275// Voice actions
276#define ACTION_VOICE_RECOGNIZE 300
277
278// Touch actions
279#define ACTION_TOUCH_TAP 401 //!< touch actions
280#define ACTION_TOUCH_TAP_TEN 410 //!< touch actions
281#define ACTION_TOUCH_LONGPRESS 411 //!< touch actions
282#define ACTION_TOUCH_LONGPRESS_TEN 420 //!< touch actions
283
284#define ACTION_GESTURE_NOTIFY 500
285#define ACTION_GESTURE_BEGIN 501
286#define ACTION_GESTURE_ZOOM 502 //!< sendaction with point and currentPinchScale (fingers together < 1.0 -> fingers apart > 1.0)
287#define ACTION_GESTURE_ROTATE 503
288#define ACTION_GESTURE_PAN 504
289
290#define ACTION_GESTURE_SWIPE_LEFT 511
291#define ACTION_GESTURE_SWIPE_LEFT_TEN 520
292#define ACTION_GESTURE_SWIPE_RIGHT 521
293#define ACTION_GESTURE_SWIPE_RIGHT_TEN 530
294#define ACTION_GESTURE_SWIPE_UP 531
295#define ACTION_GESTURE_SWIPE_UP_TEN 540
296#define ACTION_GESTURE_SWIPE_DOWN 541
297#define ACTION_GESTURE_SWIPE_DOWN_TEN 550
298// 5xx is reserved for additional gesture actions
299#define ACTION_GESTURE_END 599
300
301// other, non-gesture actions
302#define ACTION_ANALOG_MOVE_X 601 //!< analog thumbstick move, horizontal axis; see ACTION_ANALOG_MOVE
303#define ACTION_ANALOG_MOVE_Y 602 //!< analog thumbstick move, vertical axis; see ACTION_ANALOG_MOVE
304//@}
305
306// The NOOP action can be specified to disable an input event. This is
307// useful in user keyboard.xml etc to disable actions specified in the
308// system mappings. ERROR action is used to play an error sound
309#define ACTION_ERROR 998
310#define ACTION_NOOP 999