summaryrefslogtreecommitdiff
path: root/keyboards/thevankeyboards/roadkit
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-12-17 21:54:01 +1100
committerGitHub <noreply@github.com>2023-12-17 21:54:01 +1100
commit7ea022ba88125c27ef2d137f52e7cf846ddb4ee9 (patch)
tree3998727ea1224c872f50bb53ab220841962d814f /keyboards/thevankeyboards/roadkit
parentf0e4bc937aeaf84887ab27d7e085e6d02fbebda9 (diff)
[Keymap Removal] Planck and related keymaps. (#22683)
Diffstat (limited to 'keyboards/thevankeyboards/roadkit')
-rw-r--r--keyboards/thevankeyboards/roadkit/keymaps/mjt/config.h8
-rw-r--r--keyboards/thevankeyboards/roadkit/keymaps/mjt/keymap.c230
-rw-r--r--keyboards/thevankeyboards/roadkit/keymaps/mjt/readme.md22
-rw-r--r--keyboards/thevankeyboards/roadkit/keymaps/mjt/rules.mk18
4 files changed, 0 insertions, 278 deletions
diff --git a/keyboards/thevankeyboards/roadkit/keymaps/mjt/config.h b/keyboards/thevankeyboards/roadkit/keymaps/mjt/config.h
deleted file mode 100644
index df06a26206..0000000000
--- a/keyboards/thevankeyboards/roadkit/keymaps/mjt/config.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef CONFIG_USER_H
-#define CONFIG_USER_H
-
-#include "../../config.h"
-
-// place overrides here
-
-#endif \ No newline at end of file
diff --git a/keyboards/thevankeyboards/roadkit/keymaps/mjt/keymap.c b/keyboards/thevankeyboards/roadkit/keymaps/mjt/keymap.c
deleted file mode 100644
index db84674050..0000000000
--- a/keyboards/thevankeyboards/roadkit/keymaps/mjt/keymap.c
+++ /dev/null
@@ -1,230 +0,0 @@
-#include QMK_KEYBOARD_H
-
-extern keymap_config_t keymap_config;
-
-#ifdef BACKLIGHT_ENABLE
- #include "backlight.h"
-#endif
-
-#ifdef AUDIO_ENABLE
- #include "audio.h"
-#endif
-
-void backlight_toggle(void){
-};
-
-enum roadkit_layers {
- _NUMPAD,
- _NAVIGATION,
- _EXCEL,
- _ADJUST,
- _DYN
-};
-
-enum minivan_keycodes {
- NUMPAD = SAFE_RANGE,
- NAVIGATION,
- EXCEL,
- NUMPAD_LOCK,
- NAVIGATION_LOCK,
- EXCEL_LOCK,
- PARENS,
- BRACKETS,
- BRACES,
- BACKLIT,
- MACSLEEP,
- DYNAMIC_MACRO_RANGE,
-};
-
-#include "dynamic_macro.h"
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [_NUMPAD] = LAYOUT_numpad_4x4( /* Numpad */
- KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS,
- KC_KP_4, KC_KP_5, KC_KP_6,
- KC_KP_1, KC_KP_2, KC_KP_3, NAVIGATION,
- EXCEL, KC_KP_DOT
- ),
- [_EXCEL] = LAYOUT_numpad_4x4( /* Excel related */
- KC_KP_SLASH, KC_KP_ASTERISK, KC_MINS, KC_TAB,
- KC_QUOT, KC_KP_EQUAL, PARENS,
- KC_DQT, BRACKETS, BRACES, _______,
- _______, MO(_DYN)
- ),
- [_NAVIGATION] = LAYOUT_numpad_4x4( /* Navigation */
- KC_HOME, _______, KC_PGUP, KC_TAB,
- KC_END, KC_UP, KC_PGDN,
- KC_LEFT, KC_DOWN, KC_RIGHT, _______,
- _______, MO(_DYN)
- ),
- [_ADJUST] = LAYOUT_numpad_4x4( /* Adjustments */
- KC_NUM, MACSLEEP, BACKLIT, _______,
- KC_BSPC, _______, KC_DEL,
- EXCEL_LOCK, NUMPAD_LOCK, NAVIGATION_LOCK, _______,
- _______, _______
- ),
- [_DYN] = LAYOUT_numpad_4x4( /* DYNAMIC MACRO */
- DM_REC1, DM_REC2, _______, _______,
- _______, _______, _______,
- DM_PLY1, DM_PLY2, _______, _______,
- _______, _______
- ),
-};
-
-#ifdef AUDIO_ENABLE
-
-float tone_startup[][2] = SONG(STARTUP_SOUND);
-float tone_numpad[][2] = SONG(QWERTY_SOUND);
-float tone_excel[][2] = SONG(DVORAK_SOUND);
-float tone_navigation[][2] = SONG(COLEMAK_SOUND);
-float tone_plover[][2] = SONG(PLOVER_SOUND);
-float tone_plover_gb[][2] = SONG(PLOVER_GOODBYE_SOUND);
-float music_scale[][2] = SONG(MUSIC_SCALE_SOUND);
-
-float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
-#endif
-
-void persistant_default_layer_set(uint16_t default_layer) {
- eeconfig_update_default_layer(default_layer);
- default_layer_set(default_layer);
-}
-
-bool fn_tap_used = false; // sets to false when space is pressed,
- // sets to true when any other key is pressed,
- //when space is lifted, if another key was prssed, don't send space.
-uint16_t fn_keycode = 0; // stores which spacebar was used, either raise or lower...
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- if (!process_record_dynamic_macro(keycode, record)) {
- return false;
- }
-
- switch (keycode) {
- case NAVIGATION: // This key is enter if tapped, navigation if held
- if (record->event.pressed) {
- fn_keycode = NAVIGATION; // these two lines figure out if the next action is
- fn_tap_used = false;
- layer_on(_NAVIGATION);
- update_tri_layer(_EXCEL, _NAVIGATION, _ADJUST);
- } else {
- layer_off(_NAVIGATION);
- update_tri_layer(_EXCEL, _NAVIGATION, _ADJUST);
- if(!fn_tap_used && fn_keycode == NAVIGATION ){
- register_code(KC_KP_ENTER);
- unregister_code(KC_KP_ENTER);
- fn_keycode = 0;
- fn_tap_used = false;
- }
- }
- return false;
- break;
- case EXCEL:
- if (record->event.pressed) {
- fn_keycode = EXCEL;
- fn_tap_used = false;
- layer_on(_EXCEL);
- update_tri_layer(_EXCEL, _NAVIGATION, _ADJUST);
- } else {
- layer_off(_EXCEL);
- update_tri_layer(_EXCEL, _NAVIGATION, _ADJUST);
- if(!fn_tap_used && fn_keycode == EXCEL ){
- register_code(KC_KP_0);
- unregister_code(KC_KP_0);
- fn_keycode = 0;
- fn_tap_used = false;
- }
- }
- return false;
- break;
- default:
- fn_tap_used = true;
- break; // don't return because this just handles the spacebars.
- }
- // this is the normal keycode processing switch from Planck default layout.
- switch (keycode) {
- case NUMPAD_LOCK:
- if (record->event.pressed) {
- #ifdef AUDIO_ENABLE
- PLAY_SONG(tone_numpad);
- #endif
- persistant_default_layer_set(1UL<<_NUMPAD);
- }
- return false;
- break;
- case NAVIGATION_LOCK:
- if (record->event.pressed) {
- #ifdef AUDIO_ENABLE
- PLAY_SONG(tone_navigation);
- #endif
- persistant_default_layer_set(1UL<<_NAVIGATION);
- }
- return false;
- break;
- case EXCEL_LOCK:
- if (record->event.pressed) {
- #ifdef AUDIO_ENABLE
- PLAY_SONG(tone_excel);
- #endif
- persistant_default_layer_set(1UL<<_EXCEL);
- }
- return false;
- break;
- case PARENS:
- if (record->event.pressed) {
- register_code(KC_RSFT);
- register_code(KC_9);
- unregister_code(KC_9);
- register_code(KC_0);
- unregister_code(KC_0);
- register_code(KC_RSFT);
- register_code(KC_LEFT);
- unregister_code(KC_LEFT);
- }
- return false;
- break;
- case BRACKETS:
- if (record->event.pressed) {
- register_code(KC_LBRC);
- unregister_code(KC_LBRC);
- register_code(KC_RBRC);
- unregister_code(KC_RBRC);
- register_code(KC_LEFT);
- unregister_code(KC_LEFT);
- }
- return false;
- break;
- case BRACES:
- if (record->event.pressed) {
- register_code(KC_RSFT);
- register_code(KC_LBRC);
- unregister_code(KC_LBRC);
- register_code(KC_RBRC);
- unregister_code(KC_RBRC);
- unregister_code(KC_RSFT);
- register_code(KC_LEFT);
- unregister_code(KC_LEFT);
- }
- return false;
- break;
- case BACKLIT:
- if (record->event.pressed) {
- #ifdef BACKLIGHT_ENABLE
- backlight_step();
- #endif
- }
- return false;
- break;
- case MACSLEEP:
- if (record->event.pressed) {
- register_code(KC_RSFT);
- register_code(KC_RCTL);
- register_code(KC_PWR);
- unregister_code(KC_PWR);
- unregister_code(KC_RCTL);
- unregister_code(KC_RSFT);
- }
- return false;
- break;
- }
- return true;
-}
diff --git a/keyboards/thevankeyboards/roadkit/keymaps/mjt/readme.md b/keyboards/thevankeyboards/roadkit/keymaps/mjt/readme.md
deleted file mode 100644
index 80c0e5240e..0000000000
--- a/keyboards/thevankeyboards/roadkit/keymaps/mjt/readme.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# Mike's custom keymap for roadkit
-
-Based on the 13 key layout.
-
-## LAYERS
-
-* Numpad - The layer that matches the caps
-* Excel - / * - = and () [] {} macros
-* Navigation - arrow keys and home/end
-* ADJUST - just like planck adjust, lets you set default layer.
-* DYN - dynamic macro layer for recording and playing macros
-
-## MACROS
-
-Sadly, the dynamic macros are probably going worthless because they keys that
-they record have to be pressed on this keyboard. This keyboard doesn't have
-most letters...
-
-## LEADER KEYS
-
-This board would probably be better with the user of leader keys instead of
-complex layers with a raise/lower setup... Something to look into for later.
diff --git a/keyboards/thevankeyboards/roadkit/keymaps/mjt/rules.mk b/keyboards/thevankeyboards/roadkit/keymaps/mjt/rules.mk
deleted file mode 100644
index 93e7cd8bb7..0000000000
--- a/keyboards/thevankeyboards/roadkit/keymaps/mjt/rules.mk
+++ /dev/null
@@ -1,18 +0,0 @@
-# Build Options
-# change to "no" to disable the options, or define them in the Makefile in
-# the appropriate keymap folder that will get included automatically
-#
-BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
-EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
-CONSOLE_ENABLE = no # Console for debug(+400)
-COMMAND_ENABLE = yes # Commands for debug and configuration
-NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
-BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
-MIDI_ENABLE = no # MIDI controls
-AUDIO_ENABLE = no # Audio output on port C6
-UNICODE_ENABLE = no # Unicode
-BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
-RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
-SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
-