~ruther/qmk_firmware

ref: ee832e6bb7a78372d13994f13a0289adcffbf603 qmk_firmware/users/rutherther/features/cz_accent.h -rw-r--r-- 781 bytes
ee832e6b — Rutherther feat: add achordion 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
24
25
26
#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);


bool is_in_czech_accent_mode(void);
Do not follow this link