add working scroll mode

This commit is contained in:
scda 2023-09-05 08:40:26 +02:00
parent f516cbaa95
commit bf726d298d
3 changed files with 27 additions and 20 deletions

View File

@ -33,7 +33,7 @@
]
},
"layouts": {
"LAYOUT_all": {
"LAYOUT": {
"layout": [
{"label": "D3", "matrix": [0, 0], "x": 0, "y": 0},
{"label": "D2", "matrix": [1, 0], "x": 0, "y": 1},

View File

@ -0,0 +1,26 @@
#include QMK_KEYBOARD_H
bool set_scrolling = true;
report_mouse_t pointing_device_task_user(report_mouse_t mouse_report) {
if (set_scrolling) {
mouse_report.h = mouse_report.x;
mouse_report.v = mouse_report.y;
mouse_report.x = mouse_report.y = 0;
}
return mouse_report;
}
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_0,
KC_1,
KC_3,
KC_5,
KC_6, KC_7,
KC_8, KC_9,
KC_A, KC_B,
KC_C, KC_D,
KC_E, KC_F,
KC_G
)
};

View File

@ -1,19 +0,0 @@
{
"keyboard": "ez_maker/directpins/promicro",
"keymap": "default",
"layout": "LAYOUT_all",
"layers": [
[
"KC_0",
"KC_1",
"KC_3",
"KC_5",
"KC_6", "KC_7",
"KC_8", "KC_9",
"KC_A", "KC_B",
"KC_C", "KC_D",
"KC_E", "KC_F",
"KC_G"
]
]
}