forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Keymap] Xulkal user changes (qmk#6044)
* Xulkal user changes Xulkal user changes * Reduce code duplication * Massive user code refactor
- Loading branch information
1 parent
8cc9ad8
commit 41568b7
Showing
18 changed files
with
332 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include "custom_encoder.h" | ||
|
||
#ifdef ENCODER_ENABLE | ||
const uint16_t PROGMEM encoders[][2] = { | ||
{ KC_PGUP, KC_PGDN }, | ||
{ KC_DOWN, KC_UP } | ||
} | ||
|
||
void encoder_update_user(uint8_t index, bool clockwise) | ||
{ | ||
tap_code16(pgm_read_word(&encoders[index][clockwise])); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#pragma once | ||
#include "quantum.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#pragma once | ||
|
||
enum custom_keycodes { | ||
RGBRST = SAFE_RANGE, | ||
#ifndef TAP_DANCE_ENABLE | ||
TD_MIN, | ||
TD_COMM = TD_MIN, | ||
TD_BSPC, | ||
TD_DEL, | ||
TD_DOT, | ||
TD_MAX, | ||
#endif | ||
KEYMAP_SAFE_RANGE | ||
}; | ||
|
||
#define RIS_ESC LT(_RAISE, KC_ESC) | ||
#define RIS_CAPS LT(_RAISE, KC_CAPS) | ||
|
||
#define QWERTY DF(_QWERTY) | ||
|
||
#ifndef GAMELAYER_DISABLE | ||
#define GAME DF(_GAME) | ||
#else | ||
#define GAME KC_TRANSPARENT | ||
#endif | ||
|
||
#define LOWER MO(_LOWER) | ||
#define RAISE MO(_RAISE) |
Oops, something went wrong.