[Keyboard] Add togkey/pad_pocket (#25470)
* Initial Source for Pad Pocket * Added Tap Dance and Combo Configurations * Updated LED Count * Updated read me * Updated Readme * -Removed config.h file - Added tap dance and combos to keymap level - Removed tap dance and combos from keyboard.json - Fixed conflict with submodules * Fixed Formatting
This commit is contained in:
committed by
GitHub
parent
c3773d9c35
commit
9e757bc2ec
29
keyboards/togkey/pad_pocket/keymaps/default/keymap.c
Normal file
29
keyboards/togkey/pad_pocket/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,29 @@
|
||||
// Copyright 2025 TogKey
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
//Tap Dances
|
||||
enum {
|
||||
TD_VOLDOWN_MEDIAPREV,
|
||||
TD_VOLUP_MEDIANEXT
|
||||
};
|
||||
|
||||
tap_dance_action_t tap_dance_actions[] = {
|
||||
[TD_VOLDOWN_MEDIAPREV] = ACTION_TAP_DANCE_DOUBLE(KC_AUDIO_VOL_DOWN, KC_MEDIA_PREV_TRACK),
|
||||
[TD_VOLUP_MEDIANEXT] = ACTION_TAP_DANCE_DOUBLE(KC_AUDIO_VOL_UP, KC_MEDIA_NEXT_TRACK)
|
||||
};
|
||||
|
||||
//Combos
|
||||
const uint16_t PROGMEM media_combo[] = {TD(TD_VOLDOWN_MEDIAPREV), TD(TD_VOLUP_MEDIANEXT), COMBO_END};
|
||||
|
||||
combo_t key_combos[] = {
|
||||
COMBO(media_combo, KC_MEDIA_PLAY_PAUSE)
|
||||
};
|
||||
|
||||
//Keymap
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
TD(TD_VOLDOWN_MEDIAPREV), TD(TD_VOLUP_MEDIANEXT)
|
||||
)
|
||||
};
|
||||
Reference in New Issue
Block a user