diff options
author | VeyPatch <[email protected]> | 2024-12-02 22:26:10 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-02 14:26:10 -0700 |
commit | c8fe565ee6528942cfc71187e32237b39ab7320a (patch) | |
tree | cdf9ab01c96102a605e0e65e2d93904474d62ca3 /keyboards/splitkb/halcyon/kyria/rev4/rev4.c | |
parent | 50966934b2d7fd30514068cf262caf2213630159 (diff) | |
download | qmk_firmware-c8fe565ee6528942cfc71187e32237b39ab7320a.tar.gz qmk_firmware-c8fe565ee6528942cfc71187e32237b39ab7320a.zip |
[Keyboard] Add splitkb.com's Halcyon Kyria rev4 (#24512)
* Add Halcyon Kyria Rev4
* Remove bootmagic and unused features
* Fix encoderindex
* Update readme.md
* Remove rgblight
* Implement requested changes
* Add encoder update user
* Remove rules.mk and add VIK configuration
* Move options to config.h
* Update RGB keycodes (qmk#24484)
* implement changes
---------
Co-authored-by: harvey-splitkb <[email protected]>
Diffstat (limited to 'keyboards/splitkb/halcyon/kyria/rev4/rev4.c')
-rw-r--r-- | keyboards/splitkb/halcyon/kyria/rev4/rev4.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/keyboards/splitkb/halcyon/kyria/rev4/rev4.c b/keyboards/splitkb/halcyon/kyria/rev4/rev4.c new file mode 100644 index 0000000000..27671b9d7c --- /dev/null +++ b/keyboards/splitkb/halcyon/kyria/rev4/rev4.c @@ -0,0 +1,28 @@ +// Copyright 2024 splitkb.com ([email protected]) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "quantum.h" + +#ifdef ENCODER_ENABLE +bool encoder_update_kb(uint8_t index, bool clockwise) { + if (!encoder_update_user(index, clockwise)) { + return false; + } + if (index == 0) { + // Volume control + if (clockwise) { + tap_code(KC_VOLU); + } else { + tap_code(KC_VOLD); + } + } else if (index == 1) { + // Page up/Page down + if (clockwise) { + tap_code(KC_PGDN); + } else { + tap_code(KC_PGUP); + } + } + return false; +} +#endif |