aboutsummaryrefslogtreecommitdiff
path: root/unimap_00.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-02-14 23:20:16 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-02-14 23:20:16 +0100
commit34c237e079e68fc5621519703b66659b96fd68b6 (patch)
tree2aa0773bcb96eb0abf6c3ad65fa084520e301f5f /unimap_00.c
parent8a439f06a774d853b55e8be1ca59980a1686658d (diff)
downloadtmk7637-34c237e079e68fc5621519703b66659b96fd68b6.tar.gz
fixed "security key" (Bediensicherungsbaugruppe) handling
* the keypress events were swallowed due to debouncing * instead, we process the corresponding bits in the keyboard matrix now only after debouncing. * we now generate a short keypress event (immediately followed by a keyrelease) not only when removing, but also when inserting the physical key. * when removing the key, F18 (in Unimap's geometry, by default mapped to RCTRL) is additionally pressed. This can be used to discern removing from inserting. In the common case that you own only one physical key, you can remap F18 to the removal action and F19 (or whatever corresponds to your key) to the insertion action.
Diffstat (limited to 'unimap_00.c')
-rw-r--r--unimap_00.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/unimap_00.c b/unimap_00.c
index cd266a7..9c0f995 100644
--- a/unimap_00.c
+++ b/unimap_00.c
@@ -25,10 +25,10 @@ const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] __attribute__ ((section ("
const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] PROGMEM = {
#endif
[0] = UNIMAP_K7637(
- ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, PSCR,SLCK,PAUS, VOLD,VOLU,MUTE, F19,
- GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, END, DEL, NLCK,PSLS, F20,
- TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, HOME,PGUP, P7, P8, P9, PPLS, F21,
- CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT,NUHS, ENT, PGDN, P4, P5, P6, NO, F22,
- LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, DOWN,UP, P1, P2, P3, PENT, F23,
- NO, LCTL, SPC, RALT, NO, LEFT,RGHT, P0, P00, PCMM,NO, F24),
+ ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, PSCR,SLCK,PAUS, VOLD,VOLU,MUTE, RCTL, F19,
+ GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, END, DEL, NLCK,PSLS, F20,
+ TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, HOME,PGUP, P7, P8, P9, PPLS, F21,
+ CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT,NUHS, ENT, PGDN, P4, P5, P6, NO, F22,
+ LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, DOWN,UP, P1, P2, P3, PENT, F23,
+ NO, LCTL, SPC, RALT, NO, LEFT,RGHT, P0, P00, PCMM,NO, F24)
};