mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-07-05 03:10:35 -04:00
Tandem checkin for ploopyco overhaul
- Added build option for new ploopy nano build - Added ploopy nano userspace keymap - Removed old drag scroll detection. OLED graphic tied to scroll lock - REmoved old scroll lock and dpi custom keycodes used for Lkbm keymap - overrode num/scroll lock. It is now a hold instead of a toggle - Added custom keycode to turn on all locks to tell ploopy nano to enter bootloader - refactored variables based on learnings from ploopy rebase - minor tweaks to keymap - pressing numlock cycles through dpi settings - pressing scroll lock enters momentary drag scroll
This commit is contained in:
parent
c1803bf38e
commit
c2008065ae
10 changed files with 104 additions and 74 deletions
|
@ -36,7 +36,7 @@ bool combo_should_trigger(uint16_t combo_index, combo_t *combo, uint16_t keycode
|
|||
// case MOUSE_BUTTON5:
|
||||
|
||||
case MOUSE_DRGTOG:
|
||||
if ( get_highest_layer(layer_state | default_layer_state) > _DEFAULT_LAYER_1 ) return false;
|
||||
if ( get_highest_layer(layer_state | default_layer_state) > FIRST_DEFAULT_LAYER ) return false;
|
||||
|
||||
default:
|
||||
return true;
|
||||
|
|
|
@ -115,7 +115,7 @@ void render_feature_status(bool vertical) {
|
|||
#endif //RGB_MATRIX_ENABLED
|
||||
|
||||
// only works on master side
|
||||
drag_scroll_is_enabled() ? oled_write_P(dragscr_on, false) : oled_write_P(dragscr_off, false);
|
||||
host_keyboard_led_state().scroll_lock ? oled_write_P(dragscr_on, false) : oled_write_P(dragscr_off, false);
|
||||
|
||||
if (vertical) {
|
||||
oled_write_P(PSTR(" "), false);
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
#pragma once
|
||||
#include "t4corun.h"
|
||||
|
||||
// Tells the process_tap_hold_key what kind of hold action is wanted
|
||||
#define HOLD_SINGLETP 0
|
||||
#define HOLD_DOUBLETP 1
|
||||
#define HOLD_BRACKETS 2
|
||||
|
||||
void single_tap(uint16_t key);
|
||||
void double_tap(uint16_t key, uint32_t ms);
|
||||
void insert_brackets(uint16_t left, uint16_t right, uint32_t ms);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue