~ruther/qmk_firmware

ref: d60d091a109cfb8490c94020fd8a516eaf90d30d qmk_firmware/users/rutherther/features/cz_accent.h -rw-r--r-- 743 bytes
d60d091a — Rutherther chore: draw keymap properly 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <stdint.h>
#include "quantum.h"
#include "keymap_czech.h"

// Type czech caret and acute symbols.
// Uses czech programmer/coder layer from OS.

// When acute or caret keycode is held, the layer will be switched to
// plain_layer, if it's not equal to -1. This is a hack for not having
// to care about tap hold, tap dance characters.


#define QK_CZ_ACUTE RALT(CZ_ACUT)
#define QK_CZ_CARET LSFT(RALT(CZ_ACUT))
#define QK_CZ_SCLN LSFT(RALT(CZ_SCLN))

bool process_czech_acute(uint16_t keycode, keyrecord_t* record,
                         uint16_t acute_keycode, int8_t plain_layer);

bool process_czech_caret(uint16_t keycode, keyrecord_t* record,
                         uint16_t caret_keycode, int8_t plain_layer);
Do not follow this link