aboutsummaryrefslogtreecommitdiff
path: root/keyboards/wilba_tech/via_keycodes.h
diff options
context:
space:
mode:
authorWilba <Jason.S.Williams@gmail.com>2019-07-21 21:46:22 +1000
committerDanny <nooges@users.noreply.github.com>2019-07-21 07:46:22 -0400
commitbffbb4b42d3167125f54b5aeb7a30fef44ff5dbe (patch)
tree679ba294b68488b74e54300a435654057f09af81 /keyboards/wilba_tech/via_keycodes.h
parentd686c0ea43d6a9db7768da64ee54c3ba25c018f7 (diff)
downloadqmk_firmware-bffbb4b42d3167125f54b5aeb7a30fef44ff5dbe.tar.gz
qmk_firmware-bffbb4b42d3167125f54b5aeb7a30fef44ff5dbe.zip
Refactoring wilba.tech PCBs, updating Rama Works U80-A (#6272)
* Added WT65-B, WT75-B, minor fixes * Update keyboards/wilba_tech/wt65_b/config.h Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/wilba_tech/wt65_b/readme.md Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update keyboards/wilba_tech/wt75_b/config.h Co-Authored-By: Drashna Jaelre <drashna@live.com> * Change DEBOUNCING_DELAY to DEBOUNCE * Change DEBOUNCING_DELAY to DEBOUNCE * Move Zeal60/Zeal65 files to keyboards/wilba_tech * Change DEBOUNCING_DELAY to DEBOUNCE * Refactoring zeal60 code to wilba_tech * Moved Rama Works PCBs to wilba_tech * Rename Rama Works files * Cleanup info.json * Cleanup readme.md * Cleanup USB device strings * U80-A RGB matrix, IS31FL3731 driver changes * Fixed #include from keyboards/zeal60
Diffstat (limited to 'keyboards/wilba_tech/via_keycodes.h')
-rw-r--r--keyboards/wilba_tech/via_keycodes.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/keyboards/wilba_tech/via_keycodes.h b/keyboards/wilba_tech/via_keycodes.h
new file mode 100644
index 000000000..bed48d64b
--- /dev/null
+++ b/keyboards/wilba_tech/via_keycodes.h
@@ -0,0 +1,77 @@
1/* Copyright 2017 Jason Williams (Wilba)
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18// Can't use SAFE_RANGE here, it might change if someone adds
19// new values to enum quantum_keycodes.
20// Need to keep checking 0x5F10 is still in the safe range.
21// TODO: merge this into quantum_keycodes
22// Backlight keycodes are in range 0x5F00-0x5F0F
23enum via_keycodes {
24 FN_MO13 = 0x5F10,
25 FN_MO23,
26 MACRO00,
27 MACRO01,
28 MACRO02,
29 MACRO03,
30 MACRO04,
31 MACRO05,
32 MACRO06,
33 MACRO07,
34 MACRO08,
35 MACRO09,
36 MACRO10,
37 MACRO11,
38 MACRO12,
39 MACRO13,
40 MACRO14,
41 MACRO15,
42};
43
44enum user_keycodes {
45 USER00 = 0x5F80,
46 USER01,
47 USER02,
48 USER03,
49 USER04,
50 USER05,
51 USER06,
52 USER07,
53 USER08,
54 USER09,
55 USER10,
56 USER11,
57 USER12,
58 USER13,
59 USER14,
60 USER15,
61};
62
63// VIA specific "action functions", introduced with Zeal60
64// These are only valid IDs in action_function()
65// Use FN_TT13, FN_TT23, etc. in keymaps
66enum via_action_functions {
67 TRIPLE_TAP_1_3 = 0x31,
68 TRIPLE_TAP_2_3 = 0x32
69};
70
71// Bitwise OR the above with 0x0F00 to use in F(x) macro
72// This reserves the top 256 of the 4096 range of F(x) keycodes,
73// leaving the rest for use in fn_actions[] or actions in EEPROM.
74#define FN_TT13 F((0x0F00|TRIPLE_TAP_1_3))
75#define FN_TT23 F((0x0F00|TRIPLE_TAP_2_3))
76
77#define TG_NKRO MAGIC_TOGGLE_NKRO