mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-25 10:44:59 +06:00
Tidy up encoder in matrix references (#21718)
This commit is contained in:
parent
805324c456
commit
c9e6669179
@ -1,21 +0,0 @@
|
||||
/* Copyright 2021 meletrix
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// Note: array is { col, row )
|
||||
#define ENCODERS_CW_KEY { { 5, 4 } }
|
||||
#define ENCODERS_CCW_KEY { { 3, 4 } }
|
@ -4,14 +4,3 @@
|
||||
#pragma once
|
||||
|
||||
#define DYNAMIC_KEYMAP_LAYER_COUNT 7
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Rotary Encoder
|
||||
//------------------------------------------------------------------------------
|
||||
// Encoder triggers specific key matrix position,
|
||||
// when turn knob clockwise or counterclockwise.
|
||||
// This is handy to assign key codes by VIA.
|
||||
|
||||
// Mappings of encoder rotation to key position in key matrix.
|
||||
#define ENCODERS_CW_KEY { { 0, 4 }}
|
||||
#define ENCODERS_CCW_KEY { { 6, 0 }}
|
@ -80,9 +80,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#endif
|
||||
|
||||
#define ENCODERS_CW_KEY { { 4, 5 } }
|
||||
#define ENCODERS_CCW_KEY { { 4, 3 } }
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
@ -3,10 +3,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// Encoder mappings (used for VIA).
|
||||
#define ENCODERS_CW_KEY { { 22, 0 }, { 18, 0 }, { 20, 0 } }
|
||||
#define ENCODERS_CCW_KEY { { 23, 0 }, { 19, 0 }, { 21, 0 } }
|
||||
|
||||
// clang-format on
|
||||
|
||||
// RGB Lighting configuration. This mode is used by the vendor firmware, and
|
||||
|
@ -1,21 +0,0 @@
|
||||
/* Copyright 2021 wuque
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// Note: array is { col, row )
|
||||
#define ENCODERS_CW_KEY { { 3, 4 } }
|
||||
#define ENCODERS_CCW_KEY { { 5, 4 } }
|
Loading…
Reference in New Issue
Block a user