diff options
author | Jacob Jerrell <86279411+jjerrell@users.noreply.github.com> | 2021-08-12 09:44:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-12 07:44:15 -0700 |
commit | 30843f8329315426ff433a40095f1de2b2669e57 (patch) | |
tree | 0fc462c1b4b4ecaabb8858b6f91da8b36e29b20b /users/jjerrell/process_records.h | |
parent | 1e9d91d4ef5db1a4497767b165303e39069459cb (diff) |
[Keymap] JJerrell - Add Userspace and ZSA Keyboard Keymaps (#13548)
Diffstat (limited to 'users/jjerrell/process_records.h')
-rw-r--r-- | users/jjerrell/process_records.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/users/jjerrell/process_records.h b/users/jjerrell/process_records.h new file mode 100644 index 0000000000..de37421b10 --- /dev/null +++ b/users/jjerrell/process_records.h @@ -0,0 +1,41 @@ +// Copyright (C) 2021 Jerrell, Jacob <@jjerrell> +// +// This file is part of qmk_firmware. +// +// qmk_firmware is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// qmk_firmware is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with qmk_firmware. If not, see <http://www.gnu.org/licenses/>. + +#pragma once +#include "jjerrell.h" + +#if defined(KEYMAP_SAFE_RANGE) +# define PLACEHOLDER_SAFE_RANGE KEYMAP_SAFE_RANGE +#else +# define PLACEHOLDER_SAFE_RANGE SAFE_RANGE +#endif + +enum userspace_keycodes { + KC_ARROW = PLACEHOLDER_SAFE_RANGE, // `->` + KC_MAKE, // Runs the keyboard's make command + KC_QWERTY, // Default Layer -> QWERTY + KC_WORKMAN, // Default Layer -> Workman + KC_VRSN, // Print QMK Firmware and board info + RGB_IDL, // Toggle RGB Idle animations + RGB_TGL, // Toggle RGB Layer Indication + KC_CCCV, // One key copy/paste, + KC_GAME, // To game layer. If on game layer, cycle game layers + NEW_SAFE_RANGE // use NEW_SAFE_RANGE for keymap specific codes +}; + +bool process_record_keymap(uint16_t keycode, keyrecord_t *record); + |