Skip to content
Merged
6 changes: 4 additions & 2 deletions keyboards/ploopyco/madromys/keymaps/t4corun/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define PLOOPY_DPI_OPTIONS { 300, 600, 900, 1200, 1600, 2400 }
#define PLOOPY_DPI_OPTIONS { 300, 600, 900, 1200, 1500 }
#define PLOOPY_DPI_DEFAULT 2
#define PLOOPY_SPECIAL_DPI 0

#define PLOOPY_DRAGSCROLL_INVERT
#define PLOOPY_DRAGSCROLL_INVERT

#define TAPPING_TOGGLE 2
30 changes: 15 additions & 15 deletions keyboards/ploopyco/madromys/keymaps/t4corun/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include QMK_KEYBOARD_H

#define _BASE 0
#define _SNIPER 1
#define _DRAG_SCROLL 2
#define _DRAG_SCROLL 1
#define _SNIPER 2

#define DRAGSCR MO(_DRAG_SCROLL)
#define SNIPER MO(_SNIPER)

#define DRAGSCR TT(_DRAG_SCROLL)
#define SNIPER TG(_SNIPER)

#define NEXTTAB LCTL(KC_TAB)
#define PREVTAB LCS(KC_TAB)
Expand All @@ -31,18 +32,17 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

// ___x___, ___x___, ___x___, ___x___

[_BASE] = LAYOUT(
PREVTAB, NEXTTAB, DRAGSCR, MS_BTN2,
MS_BTN1, SNIPER ),

[_SNIPER] = LAYOUT(
___x___, ___x___, ___x___, MS_BTN2,
MS_BTN1, _______ ),
[_BASE] = LAYOUT(
MS_BTN4, MS_BTN3, DRAGSCR, MS_BTN2,
MS_BTN1, SNIPER ),

[_DRAG_SCROLL] = LAYOUT(
QK_BOOT, DPI_CONFIG, _______, MS_BTN4,
MS_BTN3, MS_BTN5 )
[_DRAG_SCROLL] = LAYOUT(
MS_BTN5, DPI_CONFIG, _______, ___x___,
MS_BTN3, QK_BOOT ),

[_SNIPER] = LAYOUT(
MS_BTN4, ___x___, DRAGSCR, MS_BTN2,
MS_BTN1, _______ )
};


Expand Down Expand Up @@ -85,4 +85,4 @@ layer_state_t layer_state_set_keymap(layer_state_t state) {
break;
}
return state;
}
}
3 changes: 3 additions & 0 deletions keyboards/ploopyco/madromys/keymaps/t4corun/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# override userspace defaults
DYNAMIC_MACRO_ENABLE = no
CAPS_WORD_ENABLE = no