]> git.friedersdorff.com Git - max/tmk_keyboard.git/blob - tmk_core/common/actionmap.h
core: Update comments in keycode.h
[max/tmk_keyboard.git] / tmk_core / common / actionmap.h
1 /*
2 Copyright 2015,2020 Jun Wako <wakojun@gmail.com>
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 */
17 #ifndef ACTIONMAP_H
18 #define ACTIONMAP_H
19
20 #include "keyboard.h"
21 #include "report.h"
22 #include "keycode.h"
23 #include "action_code.h"
24 #include "action.h"
25
26
27 /* Modified key */
28 #define AC_c(kc)                ACTION_MODS_KEY(MOD_LCTL, KC_##kc)
29 #define AC_s(kc)                ACTION_MODS_KEY(MOD_LSFT, KC_##kc)
30 #define AC_a(kc)                ACTION_MODS_KEY(MOD_LALT, KC_##kc)
31 #define AC_g(kc)                ACTION_MODS_KEY(MOD_LGUI, KC_##kc)
32
33 /* Normal key */
34 #define AC_NO                   ACTION_KEY(KC_NO)
35 #define AC_TRANSPARENT          ACTION_KEY(KC_TRANSPARENT)
36 #define AC_ROLL_OVER            ACTION_KEY(KC_ROLL_OVER)
37 #define AC_POST_FAIL            ACTION_KEY(KC_POST_FAIL)
38 #define AC_UNDEFINED            ACTION_KEY(KC_UNDEFINED)
39 #define AC_A                    ACTION_KEY(KC_A)
40 #define AC_B                    ACTION_KEY(KC_B)
41 #define AC_C                    ACTION_KEY(KC_C)
42 #define AC_D                    ACTION_KEY(KC_D)
43 #define AC_E                    ACTION_KEY(KC_E)
44 #define AC_F                    ACTION_KEY(KC_F)
45 #define AC_G                    ACTION_KEY(KC_G)
46 #define AC_H                    ACTION_KEY(KC_H)
47 #define AC_I                    ACTION_KEY(KC_I)
48 #define AC_J                    ACTION_KEY(KC_J)
49 #define AC_K                    ACTION_KEY(KC_K)
50 #define AC_L                    ACTION_KEY(KC_L)
51 #define AC_M                    ACTION_KEY(KC_M)
52 #define AC_N                    ACTION_KEY(KC_N)
53 #define AC_O                    ACTION_KEY(KC_O)
54 #define AC_P                    ACTION_KEY(KC_P)
55 #define AC_Q                    ACTION_KEY(KC_Q)
56 #define AC_R                    ACTION_KEY(KC_R)
57 #define AC_S                    ACTION_KEY(KC_S)
58 #define AC_T                    ACTION_KEY(KC_T)
59 #define AC_U                    ACTION_KEY(KC_U)
60 #define AC_V                    ACTION_KEY(KC_V)
61 #define AC_W                    ACTION_KEY(KC_W)
62 #define AC_X                    ACTION_KEY(KC_X)
63 #define AC_Y                    ACTION_KEY(KC_Y)
64 #define AC_Z                    ACTION_KEY(KC_Z)
65 #define AC_1                    ACTION_KEY(KC_1)
66 #define AC_2                    ACTION_KEY(KC_2)
67 #define AC_3                    ACTION_KEY(KC_3)
68 #define AC_4                    ACTION_KEY(KC_4)
69 #define AC_5                    ACTION_KEY(KC_5)
70 #define AC_6                    ACTION_KEY(KC_6)
71 #define AC_7                    ACTION_KEY(KC_7)
72 #define AC_8                    ACTION_KEY(KC_8)
73 #define AC_9                    ACTION_KEY(KC_9)
74 #define AC_0                    ACTION_KEY(KC_0)
75 #define AC_ENTER                ACTION_KEY(KC_ENTER)
76 #define AC_ESCAPE               ACTION_KEY(KC_ESCAPE)
77 #define AC_BSPACE               ACTION_KEY(KC_BSPACE)
78 #define AC_TAB                  ACTION_KEY(KC_TAB)
79 #define AC_SPACE                ACTION_KEY(KC_SPACE)
80 #define AC_MINUS                ACTION_KEY(KC_MINUS)
81 #define AC_EQUAL                ACTION_KEY(KC_EQUAL)
82 #define AC_LBRACKET             ACTION_KEY(KC_LBRACKET)
83 #define AC_RBRACKET             ACTION_KEY(KC_RBRACKET)
84 #define AC_BSLASH               ACTION_KEY(KC_BSLASH)
85 #define AC_NONUS_HASH           ACTION_KEY(KC_NONUS_HASH)
86 #define AC_SCOLON               ACTION_KEY(KC_SCOLON)
87 #define AC_QUOTE                ACTION_KEY(KC_QUOTE)
88 #define AC_GRAVE                ACTION_KEY(KC_GRAVE)
89 #define AC_COMMA                ACTION_KEY(KC_COMMA)
90 #define AC_DOT                  ACTION_KEY(KC_DOT)
91 #define AC_SLASH                ACTION_KEY(KC_SLASH)
92 #define AC_CAPSLOCK             ACTION_KEY(KC_CAPSLOCK)
93 #define AC_F1                   ACTION_KEY(KC_F1)
94 #define AC_F2                   ACTION_KEY(KC_F2)
95 #define AC_F3                   ACTION_KEY(KC_F3)
96 #define AC_F4                   ACTION_KEY(KC_F4)
97 #define AC_F5                   ACTION_KEY(KC_F5)
98 #define AC_F6                   ACTION_KEY(KC_F6)
99 #define AC_F7                   ACTION_KEY(KC_F7)
100 #define AC_F8                   ACTION_KEY(KC_F8)
101 #define AC_F9                   ACTION_KEY(KC_F9)
102 #define AC_F10                  ACTION_KEY(KC_F10)
103 #define AC_F11                  ACTION_KEY(KC_F11)
104 #define AC_F12                  ACTION_KEY(KC_F12)
105 #define AC_PSCREEN              ACTION_KEY(KC_PSCREEN)
106 #define AC_SCROLLLOCK           ACTION_KEY(KC_SCROLLLOCK)
107 #define AC_PAUSE                ACTION_KEY(KC_PAUSE)
108 #define AC_INSERT               ACTION_KEY(KC_INSERT)
109 #define AC_HOME                 ACTION_KEY(KC_HOME)
110 #define AC_PGUP                 ACTION_KEY(KC_PGUP)
111 #define AC_DELETE               ACTION_KEY(KC_DELETE)
112 #define AC_END                  ACTION_KEY(KC_END)
113 #define AC_PGDOWN               ACTION_KEY(KC_PGDOWN)
114 #define AC_RIGHT                ACTION_KEY(KC_RIGHT)
115 #define AC_LEFT                 ACTION_KEY(KC_LEFT)
116 #define AC_DOWN                 ACTION_KEY(KC_DOWN)
117 #define AC_UP                   ACTION_KEY(KC_UP)
118 #define AC_NUMLOCK              ACTION_KEY(KC_NUMLOCK)
119 #define AC_KP_SLASH             ACTION_KEY(KC_KP_SLASH)
120 #define AC_KP_ASTERISK          ACTION_KEY(KC_KP_ASTERISK)
121 #define AC_KP_MINUS             ACTION_KEY(KC_KP_MINUS)
122 #define AC_KP_PLUS              ACTION_KEY(KC_KP_PLUS)
123 #define AC_KP_ENTER             ACTION_KEY(KC_KP_ENTER)
124 #define AC_KP_1                 ACTION_KEY(KC_KP_1)
125 #define AC_KP_2                 ACTION_KEY(KC_KP_2)
126 #define AC_KP_3                 ACTION_KEY(KC_KP_3)
127 #define AC_KP_4                 ACTION_KEY(KC_KP_4)
128 #define AC_KP_5                 ACTION_KEY(KC_KP_5)
129 #define AC_KP_6                 ACTION_KEY(KC_KP_6)
130 #define AC_KP_7                 ACTION_KEY(KC_KP_7)
131 #define AC_KP_8                 ACTION_KEY(KC_KP_8)
132 #define AC_KP_9                 ACTION_KEY(KC_KP_9)
133 #define AC_KP_0                 ACTION_KEY(KC_KP_0)
134 #define AC_KP_DOT               ACTION_KEY(KC_KP_DOT)
135 #define AC_NONUS_BSLASH         ACTION_KEY(KC_NONUS_BSLASH)
136 #define AC_APPLICATION          ACTION_KEY(KC_APPLICATION)
137 #define AC_POWER                ACTION_KEY(KC_POWER)
138 #define AC_KP_EQUAL             ACTION_KEY(KC_KP_EQUAL)
139 #define AC_F13                  ACTION_KEY(KC_F13)
140 #define AC_F14                  ACTION_KEY(KC_F14)
141 #define AC_F15                  ACTION_KEY(KC_F15)
142 #define AC_F16                  ACTION_KEY(KC_F16)
143 #define AC_F17                  ACTION_KEY(KC_F17)
144 #define AC_F18                  ACTION_KEY(KC_F18)
145 #define AC_F19                  ACTION_KEY(KC_F19)
146 #define AC_F20                  ACTION_KEY(KC_F20)
147 #define AC_F21                  ACTION_KEY(KC_F21)
148 #define AC_F22                  ACTION_KEY(KC_F22)
149 #define AC_F23                  ACTION_KEY(KC_F23)
150 #define AC_F24                  ACTION_KEY(KC_F24)
151 #define AC_EXECUTE              ACTION_KEY(KC_EXECUTE)
152 #define AC_HELP                 ACTION_KEY(KC_HELP)
153 #define AC_MENU                 ACTION_KEY(KC_MENU)
154 #define AC_SELECT               ACTION_KEY(KC_SELECT)
155 #define AC_STOP                 ACTION_KEY(KC_STOP)
156 #define AC_AGAIN                ACTION_KEY(KC_AGAIN)
157 #define AC_UNDO                 ACTION_KEY(KC_UNDO)
158 #define AC_CUT                  ACTION_KEY(KC_CUT)
159 #define AC_COPY                 ACTION_KEY(KC_COPY)
160 #define AC_PASTE                ACTION_KEY(KC_PASTE)
161 #define AC_FIND                 ACTION_KEY(KC_FIND)
162 #define AC__MUTE                ACTION_KEY(KC__MUTE)
163 #define AC__VOLUP               ACTION_KEY(KC__VOLUP)
164 #define AC__VOLDOWN             ACTION_KEY(KC__VOLDOWN)
165 #define AC_LOCKING_CAPS         ACTION_KEY(KC_LOCKING_CAPS)
166 #define AC_LOCKING_NUM          ACTION_KEY(KC_LOCKING_NUM)
167 #define AC_LOCKING_SCROLL       ACTION_KEY(KC_LOCKING_SCROLL)
168 #define AC_KP_COMMA             ACTION_KEY(KC_KP_COMMA)
169 #define AC_KP_EQUAL_AS400       ACTION_KEY(KC_KP_EQUAL_AS400)
170 #define AC_INT1                 ACTION_KEY(KC_INT1)
171 #define AC_INT2                 ACTION_KEY(KC_INT2)
172 #define AC_INT3                 ACTION_KEY(KC_INT3)
173 #define AC_INT4                 ACTION_KEY(KC_INT4)
174 #define AC_INT5                 ACTION_KEY(KC_INT5)
175 #define AC_INT6                 ACTION_KEY(KC_INT6)
176 #define AC_INT7                 ACTION_KEY(KC_INT7)
177 #define AC_INT8                 ACTION_KEY(KC_INT8)
178 #define AC_INT9                 ACTION_KEY(KC_INT9)
179 #define AC_LANG1                ACTION_KEY(KC_LANG1)
180 #define AC_LANG2                ACTION_KEY(KC_LANG2)
181 #define AC_LANG3                ACTION_KEY(KC_LANG3)
182 #define AC_LANG4                ACTION_KEY(KC_LANG4)
183 #define AC_LANG5                ACTION_KEY(KC_LANG5)
184 #define AC_LANG6                ACTION_KEY(KC_LANG6)
185 #define AC_LANG7                ACTION_KEY(KC_LANG7)
186 #define AC_LANG8                ACTION_KEY(KC_LANG8)
187 #define AC_LANG9                ACTION_KEY(KC_LANG9)
188 #define AC_ALT_ERASE            ACTION_KEY(KC_ALT_ERASE)
189 #define AC_SYSREQ               ACTION_KEY(KC_SYSREQ)
190 #define AC_CANCEL               ACTION_KEY(KC_CANCEL)
191 #define AC_CLEAR                ACTION_KEY(KC_CLEAR)
192 #define AC_PRIOR                ACTION_KEY(KC_PRIOR)
193 #define AC_RETURN               ACTION_KEY(KC_RETURN)
194 #define AC_SEPARATOR            ACTION_KEY(KC_SEPARATOR)
195 #define AC_OUT                  ACTION_KEY(KC_OUT)
196 #define AC_OPER                 ACTION_KEY(KC_OPER)
197 #define AC_CLEAR_AGAIN          ACTION_KEY(KC_CLEAR_AGAIN)
198 #define AC_CRSEL                ACTION_KEY(KC_CRSEL)
199 #define AC_EXSEL                ACTION_KEY(KC_EXSEL)
200 #define AC_KP_00                ACTION_KEY(KC_KP_00)
201 #define AC_KP_000               ACTION_KEY(KC_KP_000)
202 #define AC_THOUSANDS_SEPARATOR  ACTION_KEY(KC_THOUSANDS_SEPARATOR)
203 #define AC_DECIMAL_SEPARATOR    ACTION_KEY(KC_DECIMAL_SEPARATOR)
204 #define AC_CURRENCY_UNIT        ACTION_KEY(KC_CURRENCY_UNIT)
205 #define AC_CURRENCY_SUB_UNIT    ACTION_KEY(KC_CURRENCY_SUB_UNIT)
206 #define AC_KP_LPAREN            ACTION_KEY(KC_KP_LPAREN)
207 #define AC_KP_RPAREN            ACTION_KEY(KC_KP_RPAREN)
208 #define AC_KP_LCBRACKET         ACTION_KEY(KC_KP_LCBRACKET)
209 #define AC_KP_RCBRACKET         ACTION_KEY(KC_KP_RCBRACKET)
210 #define AC_KP_TAB               ACTION_KEY(KC_KP_TAB)
211 #define AC_KP_BSPACE            ACTION_KEY(KC_KP_BSPACE)
212 #define AC_KP_A                 ACTION_KEY(KC_KP_A)
213 #define AC_KP_B                 ACTION_KEY(KC_KP_B)
214 #define AC_KP_C                 ACTION_KEY(KC_KP_C)
215 #define AC_KP_D                 ACTION_KEY(KC_KP_D)
216 #define AC_KP_E                 ACTION_KEY(KC_KP_E)
217 #define AC_KP_F                 ACTION_KEY(KC_KP_F)
218 #define AC_KP_XOR               ACTION_KEY(KC_KP_XOR)
219 #define AC_KP_HAT               ACTION_KEY(KC_KP_HAT)
220 #define AC_KP_PERC              ACTION_KEY(KC_KP_PERC)
221 #define AC_KP_LT                ACTION_KEY(KC_KP_LT)
222 #define AC_KP_GT                ACTION_KEY(KC_KP_GT)
223 #define AC_KP_AND               ACTION_KEY(KC_KP_AND)
224 #define AC_KP_LAZYAND           ACTION_KEY(KC_KP_LAZYAND)
225 #define AC_KP_OR                ACTION_KEY(KC_KP_OR)
226 #define AC_KP_LAZYOR            ACTION_KEY(KC_KP_LAZYOR)
227 #define AC_KP_COLON             ACTION_KEY(KC_KP_COLON)
228 #define AC_KP_HASH              ACTION_KEY(KC_KP_HASH)
229 #define AC_KP_SPACE             ACTION_KEY(KC_KP_SPACE)
230 #define AC_KP_ATMARK            ACTION_KEY(KC_KP_ATMARK)
231 #define AC_KP_EXCLAMATION       ACTION_KEY(KC_KP_EXCLAMATION)
232 #define AC_KP_MEM_STORE         ACTION_KEY(KC_KP_MEM_STORE)
233 #define AC_KP_MEM_RECALL        ACTION_KEY(KC_KP_MEM_RECALL)
234 #define AC_KP_MEM_CLEAR         ACTION_KEY(KC_KP_MEM_CLEAR)
235 #define AC_KP_MEM_ADD           ACTION_KEY(KC_KP_MEM_ADD)
236 #define AC_KP_MEM_SUB           ACTION_KEY(KC_KP_MEM_SUB)
237 #define AC_KP_MEM_MUL           ACTION_KEY(KC_KP_MEM_MUL)
238 #define AC_KP_MEM_DIV           ACTION_KEY(KC_KP_MEM_DIV)
239 #define AC_KP_PLUS_MINUS        ACTION_KEY(KC_KP_PLUS_MINUS)
240 #define AC_KP_CLEAR             ACTION_KEY(KC_KP_CLEAR)
241 #define AC_KP_CLEAR_ENTRY       ACTION_KEY(KC_KP_CLEAR_ENTRY)
242 #define AC_KP_BINARY            ACTION_KEY(KC_KP_BINARY)
243 #define AC_KP_OCTAL             ACTION_KEY(KC_KP_OCTAL)
244 #define AC_KP_DECIMAL           ACTION_KEY(KC_KP_DECIMAL)
245 #define AC_KP_HEXADECIMAL       ACTION_KEY(KC_KP_HEXADECIMAL)
246
247 /* Modifiers */
248 #define AC_LCTRL                ACTION_KEY(KC_LCTRL)
249 #define AC_LSHIFT               ACTION_KEY(KC_LSHIFT)
250 #define AC_LALT                 ACTION_KEY(KC_LALT)
251 #define AC_LGUI                 ACTION_KEY(KC_LGUI)
252 #define AC_RCTRL                ACTION_KEY(KC_RCTRL)
253 #define AC_RSHIFT               ACTION_KEY(KC_RSHIFT)
254 #define AC_RALT                 ACTION_KEY(KC_RALT)
255 #define AC_RGUI                 ACTION_KEY(KC_RGUI)
256
257 /*
258  * TMK extensions
259  */
260 /* Sytem Control */
261 #define AC_SYSTEM_POWER         ACTION_USAGE_SYSTEM(SYSTEM_POWER_DOWN)
262 #define AC_SYSTEM_SLEEP         ACTION_USAGE_SYSTEM(SYSTEM_SLEEP)
263 #define AC_SYSTEM_WAKE          ACTION_USAGE_SYSTEM(SYSTEM_WAKE_UP)
264 /* Consumer Page */
265 #define AC_AUDIO_MUTE           ACTION_USAGE_CONSUMER(AUDIO_MUTE)
266 #define AC_AUDIO_VOL_UP         ACTION_USAGE_CONSUMER(AUDIO_VOL_UP)
267 #define AC_AUDIO_VOL_DOWN       ACTION_USAGE_CONSUMER(AUDIO_VOL_DOWN)
268 #define AC_MEDIA_NEXT_TRACK     ACTION_USAGE_CONSUMER(TRANSPORT_NEXT_TRACK)
269 #define AC_MEDIA_PREV_TRACK     ACTION_USAGE_CONSUMER(TRANSPORT_PREV_TRACK)
270 #define AC_MEDIA_FAST_FORWARD   ACTION_USAGE_CONSUMER(TRANSPORT_FAST_FORWARD)
271 #define AC_MEDIA_REWIND         ACTION_USAGE_CONSUMER(TRANSPORT_REWIND)
272 #define AC_MEDIA_STOP           ACTION_USAGE_CONSUMER(TRANSPORT_STOP)
273 #define AC_MEDIA_PLAY_PAUSE     ACTION_USAGE_CONSUMER(TRANSPORT_PLAY_PAUSE)
274 #define AC_MEDIA_EJECT          ACTION_USAGE_CONSUMER(TRANSPORT_STOP_EJECT)
275 #define AC_MEDIA_SELECT         ACTION_USAGE_CONSUMER(APPLAUNCH_CC_CONFIG)
276 #define AC_MAIL                 ACTION_USAGE_CONSUMER(APPLAUNCH_EMAIL)
277 #define AC_CALCULATOR           ACTION_USAGE_CONSUMER(APPLAUNCH_CALCULATOR)
278 #define AC_MY_COMPUTER          ACTION_USAGE_CONSUMER(APPLAUNCH_LOCAL_BROWSER)
279 #define AC_WWW_SEARCH           ACTION_USAGE_CONSUMER(APPCONTROL_SEARCH)
280 #define AC_WWW_HOME             ACTION_USAGE_CONSUMER(APPCONTROL_HOME)
281 #define AC_WWW_BACK             ACTION_USAGE_CONSUMER(APPCONTROL_BACK)
282 #define AC_WWW_FORWARD          ACTION_USAGE_CONSUMER(APPCONTROL_FORWARD)
283 #define AC_WWW_STOP             ACTION_USAGE_CONSUMER(APPCONTROL_STOP)
284 #define AC_WWW_REFRESH          ACTION_USAGE_CONSUMER(APPCONTROL_REFRESH)
285 #define AC_WWW_FAVORITES        ACTION_USAGE_CONSUMER(APPCONTROL_BOOKMARKS)
286 #define AC_BRIGHTNESS_INC       ACTION_USAGE_CONSUMER(BRIGHTNESS_INCREMENT)
287 #define AC_BRIGHTNESS_DEC       ACTION_USAGE_CONSUMER(BRIGHTNESS_DECREMENT)
288
289 /* Mousekey */
290 #define AC_MS_UP                ACTION_MOUSEKEY(KC_MS_UP)
291 #define AC_MS_DOWN              ACTION_MOUSEKEY(KC_MS_DOWN)
292 #define AC_MS_LEFT              ACTION_MOUSEKEY(KC_MS_LEFT)
293 #define AC_MS_RIGHT             ACTION_MOUSEKEY(KC_MS_RIGHT)
294 #define AC_MS_BTN1              ACTION_MOUSEKEY(KC_MS_BTN1)
295 #define AC_MS_BTN2              ACTION_MOUSEKEY(KC_MS_BTN2)
296 #define AC_MS_BTN3              ACTION_MOUSEKEY(KC_MS_BTN3)
297 #define AC_MS_BTN4              ACTION_MOUSEKEY(KC_MS_BTN4)
298 #define AC_MS_BTN5              ACTION_MOUSEKEY(KC_MS_BTN5)
299 #define AC_MS_WH_UP             ACTION_MOUSEKEY(KC_MS_WH_UP)
300 #define AC_MS_WH_DOWN           ACTION_MOUSEKEY(KC_MS_WH_DOWN)
301 #define AC_MS_WH_LEFT           ACTION_MOUSEKEY(KC_MS_WH_LEFT)
302 #define AC_MS_WH_RIGHT          ACTION_MOUSEKEY(KC_MS_WH_RIGHT)
303 #define AC_MS_ACCEL0            ACTION_MOUSEKEY(KC_MS_ACCEL0)
304 #define AC_MS_ACCEL1            ACTION_MOUSEKEY(KC_MS_ACCEL1)
305 #define AC_MS_ACCEL2            ACTION_MOUSEKEY(KC_MS_ACCEL2)
306
307 /* Command */
308 #define AC_BOOTLOADER           ACTION_COMMAND(COMMAND_BOOTLOADER, 0)
309
310
311 /*
312  * Short names
313  */
314 #define AC_LCTL                 ACTION_KEY(KC_LCTRL)
315 #define AC_RCTL                 ACTION_KEY(KC_RCTRL)
316 #define AC_LSFT                 ACTION_KEY(KC_LSHIFT)
317 #define AC_RSFT                 ACTION_KEY(KC_RSHIFT)
318 #define AC_ESC                  ACTION_KEY(KC_ESCAPE)
319 #define AC_BSPC                 ACTION_KEY(KC_BSPACE)
320 #define AC_ENT                  ACTION_KEY(KC_ENTER)
321 #define AC_DEL                  ACTION_KEY(KC_DELETE)
322 #define AC_INS                  ACTION_KEY(KC_INSERT)
323 #define AC_CAPS                 ACTION_KEY(KC_CAPSLOCK)
324 #define AC_CLCK                 ACTION_KEY(KC_CAPSLOCK)
325 #define AC_RGHT                 ACTION_KEY(KC_RIGHT)
326 #define AC_PGDN                 ACTION_KEY(KC_PGDOWN)
327 #define AC_PSCR                 ACTION_KEY(KC_PSCREEN)
328 #define AC_SLCK                 ACTION_KEY(KC_SCROLLLOCK)
329 #define AC_PAUS                 ACTION_KEY(KC_PAUSE)
330 #define AC_BRK                  ACTION_KEY(KC_PAUSE)
331 #define AC_NLCK                 ACTION_KEY(KC_NUMLOCK)
332 #define AC_SPC                  ACTION_KEY(KC_SPACE)
333 #define AC_MINS                 ACTION_KEY(KC_MINUS)
334 #define AC_EQL                  ACTION_KEY(KC_EQUAL)
335 #define AC_GRV                  ACTION_KEY(KC_GRAVE)
336 #define AC_RBRC                 ACTION_KEY(KC_RBRACKET)
337 #define AC_LBRC                 ACTION_KEY(KC_LBRACKET)
338 #define AC_COMM                 ACTION_KEY(KC_COMMA)
339 #define AC_BSLS                 ACTION_KEY(KC_BSLASH)
340 #define AC_SLSH                 ACTION_KEY(KC_SLASH)
341 #define AC_SCLN                 ACTION_KEY(KC_SCOLON)
342 #define AC_QUOT                 ACTION_KEY(KC_QUOTE)
343 #define AC_APP                  ACTION_KEY(KC_APPLICATION)
344 #define AC_NUHS                 ACTION_KEY(KC_NONUS_HASH)
345 #define AC_NUBS                 ACTION_KEY(KC_NONUS_BSLASH)
346 #define AC_LCAP                 ACTION_KEY(KC_LOCKING_CAPS)
347 #define AC_LNUM                 ACTION_KEY(KC_LOCKING_NUM)
348 #define AC_LSCR                 ACTION_KEY(KC_LOCKING_SCROLL)
349 #define AC_ERAS                 ACTION_KEY(KC_ALT_ERASE,)
350 #define AC_CLR                  ACTION_KEY(KC_CLEAR)
351 /* Japanese specific */
352 #define AC_ZKHK                 ACTION_KEY(KC_GRAVE)
353 #define AC_RO                   ACTION_KEY(KC_INT1)
354 #define AC_KANA                 ACTION_KEY(KC_INT2)
355 #define AC_JYEN                 ACTION_KEY(KC_INT3)
356 #define AC_HENK                 ACTION_KEY(KC_INT4)
357 #define AC_MHEN                 ACTION_KEY(KC_INT5)
358 /* Keypad */
359 #define AC_P1                   ACTION_KEY(KC_KP_1)
360 #define AC_P2                   ACTION_KEY(KC_KP_2)
361 #define AC_P3                   ACTION_KEY(KC_KP_3)
362 #define AC_P4                   ACTION_KEY(KC_KP_4)
363 #define AC_P5                   ACTION_KEY(KC_KP_5)
364 #define AC_P6                   ACTION_KEY(KC_KP_6)
365 #define AC_P7                   ACTION_KEY(KC_KP_7)
366 #define AC_P8                   ACTION_KEY(KC_KP_8)
367 #define AC_P9                   ACTION_KEY(KC_KP_9)
368 #define AC_P0                   ACTION_KEY(KC_KP_0)
369 #define AC_P00                  ACTION_KEY(KC_KP_00)
370 #define AC_P000                 ACTION_KEY(KC_KP_000)
371 #define AC_PDOT                 ACTION_KEY(KC_KP_DOT)
372 #define AC_PCMM                 ACTION_KEY(KC_KP_COMMA)
373 #define AC_PSLS                 ACTION_KEY(KC_KP_SLASH)
374 #define AC_PAST                 ACTION_KEY(KC_KP_ASTERISK)
375 #define AC_PMNS                 ACTION_KEY(KC_KP_MINUS)
376 #define AC_PPLS                 ACTION_KEY(KC_KP_PLUS)
377 #define AC_PEQL                 ACTION_KEY(KC_KP_EQUAL)
378 #define AC_PENT                 ACTION_KEY(KC_KP_ENTER)
379 /* Mousekey */
380 #define AC_MS_U                 ACTION_MOUSEKEY(KC_MS_UP)
381 #define AC_MS_D                 ACTION_MOUSEKEY(KC_MS_DOWN)
382 #define AC_MS_L                 ACTION_MOUSEKEY(KC_MS_LEFT)
383 #define AC_MS_R                 ACTION_MOUSEKEY(KC_MS_RIGHT)
384 #define AC_BTN1                 ACTION_MOUSEKEY(KC_MS_BTN1)
385 #define AC_BTN2                 ACTION_MOUSEKEY(KC_MS_BTN2)
386 #define AC_BTN3                 ACTION_MOUSEKEY(KC_MS_BTN3)
387 #define AC_BTN4                 ACTION_MOUSEKEY(KC_MS_BTN4)
388 #define AC_BTN5                 ACTION_MOUSEKEY(KC_MS_BTN5)
389 #define AC_WH_U                 ACTION_MOUSEKEY(KC_MS_WH_UP)
390 #define AC_WH_D                 ACTION_MOUSEKEY(KC_MS_WH_DOWN)
391 #define AC_WH_L                 ACTION_MOUSEKEY(KC_MS_WH_LEFT)
392 #define AC_WH_R                 ACTION_MOUSEKEY(KC_MS_WH_RIGHT)
393 #define AC_ACL0                 ACTION_MOUSEKEY(KC_MS_ACCEL0)
394 #define AC_ACL1                 ACTION_MOUSEKEY(KC_MS_ACCEL1)
395 #define AC_ACL2                 ACTION_MOUSEKEY(KC_MS_ACCEL2)
396 /* Sytem Control */
397 #define AC_PWR                  ACTION_USAGE_SYSTEM(SYSTEM_POWER_DOWN)
398 #define AC_SLEP                 ACTION_USAGE_SYSTEM(SYSTEM_SLEEP)
399 #define AC_WAKE                 ACTION_USAGE_SYSTEM(SYSTEM_WAKE_UP)
400 /* Consumer Page */
401 #define AC_MUTE                 ACTION_USAGE_CONSUMER(AUDIO_MUTE)
402 #define AC_VOLU                 ACTION_USAGE_CONSUMER(AUDIO_VOL_UP)
403 #define AC_VOLD                 ACTION_USAGE_CONSUMER(AUDIO_VOL_DOWN)
404 #define AC_MNXT                 ACTION_USAGE_CONSUMER(TRANSPORT_NEXT_TRACK)
405 #define AC_MPRV                 ACTION_USAGE_CONSUMER(TRANSPORT_PREV_TRACK)
406 #define AC_MFFD                 ACTION_USAGE_CONSUMER(TRANSPORT_FAST_FORWARD)
407 #define AC_MRWD                 ACTION_USAGE_CONSUMER(TRANSPORT_REWIND)
408 #define AC_MSTP                 ACTION_USAGE_CONSUMER(TRANSPORT_STOP)
409 #define AC_MPLY                 ACTION_USAGE_CONSUMER(TRANSPORT_PLAY_PAUSE)
410 #define AC_EJCT                 ACTION_USAGE_CONSUMER(TRANSPORT_STOP_EJECT)
411 #define AC_MSEL                 ACTION_USAGE_CONSUMER(APPLAUNCH_CC_CONFIG)
412 #define AC_MAIL                 ACTION_USAGE_CONSUMER(APPLAUNCH_EMAIL)
413 #define AC_CALC                 ACTION_USAGE_CONSUMER(APPLAUNCH_CALCULATOR)
414 #define AC_MYCM                 ACTION_USAGE_CONSUMER(APPLAUNCH_LOCAL_BROWSER)
415 #define AC_WSCH                 ACTION_USAGE_CONSUMER(APPCONTROL_SEARCH)
416 #define AC_WHOM                 ACTION_USAGE_CONSUMER(APPCONTROL_HOME)
417 #define AC_WBAK                 ACTION_USAGE_CONSUMER(APPCONTROL_BACK)
418 #define AC_WFWD                 ACTION_USAGE_CONSUMER(APPCONTROL_FORWARD)
419 #define AC_WSTP                 ACTION_USAGE_CONSUMER(APPCONTROL_STOP)
420 #define AC_WREF                 ACTION_USAGE_CONSUMER(APPCONTROL_REFRESH)
421 #define AC_WFAV                 ACTION_USAGE_CONSUMER(APPCONTROL_BOOKMARKS)
422 #define AC_BRTI                 ACTION_USAGE_CONSUMER(BRIGHTNESS_INCREMENT)
423 #define AC_BRTD                 ACTION_USAGE_CONSUMER(BRIGHTNESS_DECREMENT)
424 /* Transparent */
425 #define AC_TRNS                 ACTION_KEY(KC_TRANSPARENT)
426
427 /* Command */
428 #define AC_BTLD                 AC_BOOTLOADER
429
430 #endif