]> git.gir.st - tmk_keyboard.git/blob - common/action_util.h
Documentation: small mistake
[tmk_keyboard.git] / common / action_util.h
1 /*
2 Copyright 2013 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 ACTION_UTIL_H
18 #define ACTION_UTIL_H
19
20 #include <stdint.h>
21 #include "report.h"
22
23 extern report_keyboard_t *keyboard_report;
24
25 void send_keyboard_report(void);
26
27 /* key */
28 void add_key(uint8_t key);
29 void del_key(uint8_t key);
30 void clear_keys(void);
31
32 /* modifier */
33 uint8_t get_mods(void);
34 void add_mods(uint8_t mods);
35 void del_mods(uint8_t mods);
36 void set_mods(uint8_t mods);
37 void clear_mods(void);
38
39 /* weak modifier */
40 uint8_t get_weak_mods(void);
41 void add_weak_mods(uint8_t mods);
42 void del_weak_mods(uint8_t mods);
43 void set_weak_mods(uint8_t mods);
44 void clear_weak_mods(void);
45
46 /* oneshot modifier */
47 void set_oneshot_mods(uint8_t mods);
48 void clear_oneshot_mods(void);
49 void oneshot_toggle(void);
50 void oneshot_enable(void);
51 void oneshot_disable(void);
52
53 /* inspect */
54 uint8_t has_anykey(void);
55 uint8_t has_anymod(void);
56 uint8_t get_first_key(void);
57 #endif
Imprint / Impressum