From 46186783141de0dacd8a644d11c06793aec46dcc Mon Sep 17 00:00:00 2001 From: plodah Date: Wed, 11 Dec 2024 03:19:36 +0000 Subject: [PATCH] pointing divice delivery --- .../ploopyco/pavonis/keymaps/plodah/config.h | 4 +++ .../ploopyco/pavonis/keymaps/plodah/keymap.c | 5 +++ .../trackball_nano/keymaps/plodah/keymap.c | 31 +++++++++++++++++++ qmk.json | 2 ++ 4 files changed, 42 insertions(+) create mode 100644 keyboards/ploopyco/pavonis/keymaps/plodah/config.h create mode 100644 keyboards/ploopyco/pavonis/keymaps/plodah/keymap.c create mode 100644 keyboards/ploopyco/trackball_nano/keymaps/plodah/keymap.c diff --git a/keyboards/ploopyco/pavonis/keymaps/plodah/config.h b/keyboards/ploopyco/pavonis/keymaps/plodah/config.h new file mode 100644 index 00000000000..001fd919138 --- /dev/null +++ b/keyboards/ploopyco/pavonis/keymaps/plodah/config.h @@ -0,0 +1,4 @@ +// Copyright 2024 George Norton (@george-norton) +// SPDX-License-Identifier: GPL-2.0-or-later + +// #define MAXTOUCH_BOOTLOADER_GESTURE diff --git a/keyboards/ploopyco/pavonis/keymaps/plodah/keymap.c b/keyboards/ploopyco/pavonis/keymaps/plodah/keymap.c new file mode 100644 index 00000000000..af3e7fc5252 --- /dev/null +++ b/keyboards/ploopyco/pavonis/keymaps/plodah/keymap.c @@ -0,0 +1,5 @@ +// Copyright 2024 George Norton (@george-norton) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {{{ KC_NO }}}; diff --git a/keyboards/ploopyco/trackball_nano/keymaps/plodah/keymap.c b/keyboards/ploopyco/trackball_nano/keymaps/plodah/keymap.c new file mode 100644 index 00000000000..f13fbc5d945 --- /dev/null +++ b/keyboards/ploopyco/trackball_nano/keymaps/plodah/keymap.c @@ -0,0 +1,31 @@ +/* Copyright 2021 Colin Lam (Ploopy Corporation) + * Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) + * Copyright 2019 Sunjun Kim + * Copyright 2019 Hiroyuki Okada + * + * 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 . + */ +#include QMK_KEYBOARD_H + +// Dummy +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {{{ KC_NO }}}; + +void suspend_power_down_user(void) { + // Switch off sensor + LED making trackball unable to wake host + adns5050_power_down(); +} + +void suspend_wakeup_init_user(void) { + adns5050_init(); +} diff --git a/qmk.json b/qmk.json index 8ef9b87e784..a744cc28bf6 100644 --- a/qmk.json +++ b/qmk.json @@ -23,7 +23,9 @@ ["kprepublic/bm65hsrgb_iso/rev2", "plodah"], ["ploopyco/madromys", "plodah"], ["ploopyco/mouse", "plodah"], + ["ploopyco/pavonis", "plodah"], ["ploopyco/trackball_mini", "plodah"], + ["ploopyco/trackball_nano", "plodah"], ["ploopyco/trackball_thumb", "plodah"], ["sofle", "plodah"], ["winry/winry315", "plodah"],