[ploopyco/trackball] Add vial support (#945)

This commit is contained in:
obosob 2025-09-30 19:46:04 +01:00 committed by GitHub
parent 3e23f3339a
commit 4b7f74fcf6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 95 additions and 0 deletions

View file

@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#define VIAL_KEYBOARD_UID {0xEE, 0x5B, 0x21, 0xB3, 0x55, 0xDF, 0x2B, 0xA6}
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 }
#define VIAL_UNLOCK_COMBO_COLS { 3, 5 }

View file

@ -0,0 +1,25 @@
/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
* Copyright 2019 Sunjun Kim
* Copyright 2020 Ploopy Corporation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT( /* Base */
KC_BTN1, KC_BTN3, KC_BTN2,
KC_BTN4, KC_BTN5
),
};

View file

@ -0,0 +1,8 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
LTO_ENABLE = yes
QMK_SETTINGS = no
CAPS_WORD_ENABLE = no
LAYER_LOCK_ENABLE = no
REPEAT_KEY_ENABLE = no

View file

@ -0,0 +1,54 @@
{
"name": "PloopyCo Trackball",
"vendorId": "0x5043",
"productId": "0x5442",
"matrix": {
"rows": 1,
"cols": 6
},
"customKeycodes": [
{
"name": "DPI Config",
"title": "DPI Config",
"shortName": "DPI"
},
{
"name": "Drag Scroll",
"title": "Drag Scroll",
"shortName": "DragScl"
}
],
"lighting": "none",
"layouts": {
"keymap": [
[
{
"h": 2
},
"0,0",
{
"x": 1,
"h": 2
},
"0,2",
{
"x": 0.5,
"h": 2
},
"0,3",
{
"h": 2
},
"0,4"
],
[
{
"y": -0.75,
"x": 1,
"h": 1.5
},
"0,1"
]
]
}
}