Hackpad/firmware_qmk/hackpad/keymaps/default/keymap.c
2023-04-12 13:59:25 +02:00

40 lines
1.5 KiB
C

// Copyright 2023 Nico Stuhlmueller (@ThePurox)
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
#include "keymap_german.h"
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* ┌───┐
* │MUT│
* ┌───┬───┬───┼───┤
* │ 7 │ 8 │ 9 │ + │
* ├───┼───┼───┼───┤
* │ 4 │ 5 │ 6 │ - │
* ├───┼───┼───┼───┤
* │ 1 │ 2 │ 3 │ * │
* ├───┼───┼───┼───┤
* │ 0 │ . │Ent│ / │
* └───┴───┴───┴───┘
*/
[0] = LAYOUT( LT(1, KC_MUTE),
KC_7, KC_8, KC_9, DE_PLUS,
KC_4, KC_5, KC_6, DE_MINS,
KC_1, KC_2, KC_3, DE_ASTR,
KC_0, KC_DOT, KC_ENT, DE_SLSH),
[1] = LAYOUT( XXXXXXX,
RGB_M_P, RGB_M_B, RGB_M_R, RGB_HUI,
RGB_M_SW, RGB_M_SN, RGB_M_K, RGB_HUD,
RGB_M_X, RGB_M_G, RGB_M_TW, RGB_VAI,
RGB_TOG, RGB_SAI, RGB_SAD, RGB_VAD)};
bool encoder_update_user(uint8_t index, bool clockwise) {
if (clockwise) {
tap_code_delay(KC_VOLU, 10);
} else {
tap_code_delay(KC_VOLD, 10);
}
return false;
}