mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-02 05:34:17 -04:00
- Brought back Mouse Z for temporary mouse usage - Combined Mouse and Function Keys into one Layer - Cleaned up unused code (e.g. combos, key overrides) - Updated all keyboards with new layer - Updated documentation - I think this will be it for now. Making a list somewhere else for future enhancements
41 lines
No EOL
1.2 KiB
C
41 lines
No EOL
1.2 KiB
C
#include "keyoverride.h"
|
|
|
|
/*
|
|
Key Override
|
|
Here we will override some shifted versions of keys
|
|
https://docs.qmk.fm/#/feature_key_overrides?id=simple-example
|
|
|
|
Intentionally did not convert all the override/autoshit tap holds to this format
|
|
- Here I could type faster and be able to hold to repeat the keycodes however
|
|
- I had tons of same finger bigrams doing trying to get ~ and :
|
|
- I didn't feel the need to be able to repeat those symbols
|
|
*/
|
|
|
|
|
|
const key_override_t delete_override = ko_make_basic(MOD_MASK_SHIFT, KC_BSPC, KC_DEL);
|
|
|
|
#if defined(HAPTIC_ENABLE)
|
|
const key_override_t hfnext_override = ko_make_with_layers(MOD_MASK_SHIFT, TR_HNXT, HF_PREV, 1<<_CONFIG);
|
|
const key_override_t hfconu_override = ko_make_with_layers(MOD_MASK_SHIFT, TR_HCNU, HF_COND, 1<<_CONFIG);
|
|
#endif //HAPTIC_ENABLE
|
|
|
|
#if defined(AUDIO_ENABLE)
|
|
const key_override_t ckup_override = ko_make_with_layers(MOD_MASK_SHIFT, CK_UP, CK_DOWN, 1<<_CONFIG);
|
|
#endif //AUDIO_ENABLE
|
|
|
|
const key_override_t **key_overrides = (const key_override_t *[]) {
|
|
|
|
&delete_override,
|
|
|
|
#if defined(HAPTIC_ENABLE)
|
|
&hfnext_override,
|
|
&hfconu_override,
|
|
#endif //HAPTIC_ENABLE
|
|
|
|
#if defined(AUDIO_ENABLE)
|
|
&ckup_override,
|
|
#endif //AUDIO_ENABLE
|
|
|
|
NULL // Null terminate the array of overrides!
|
|
|
|
}; |