Skip to content

Commit

Permalink
Fix keycode mappings for via and ensure they don't change within prot…
Browse files Browse the repository at this point in the history
…ocol (qmk#12130)

* Fix keycode mappings for via and ensure they don't change within protocol

* Update keycodes

* Fix broken keyboards

* added the missing keycodes found in via

* Remove invalid keycodes

Co-authored-by: David Hoelscher <[email protected]>
  • Loading branch information
xyzz and infinityis committed Mar 15, 2021
1 parent 9e1d04f commit 0779c34
Show file tree
Hide file tree
Showing 11 changed files with 395 additions and 3 deletions.
3 changes: 2 additions & 1 deletion keyboards/7c8/framework/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
VIA_ENABLE = yes
VIA_ENABLE = yes
LEADER_ENABLE = no
2 changes: 2 additions & 0 deletions keyboards/latin47ble/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,5 @@
//#define NO_ACTION_ONESHOT
//#define NO_ACTION_MACRO
//#define NO_ACTION_FUNCTION

#define VIA_HAS_BROKEN_KEYCODES
1 change: 1 addition & 0 deletions keyboards/latin64ble/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.*/
#define RGBLIGHT_ANIMATIONS // Run RGB animations


#define VIA_HAS_BROKEN_KEYCODES


2 changes: 2 additions & 0 deletions keyboards/latinpadble/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,5 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.*/
#define ENCODERS_PAD_B { F7 }

#define ENCODER_RESOLUTION 4

#define VIA_HAS_BROKEN_KEYCODES
4 changes: 3 additions & 1 deletion keyboards/spaceman/pancake/feather/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@

#define AdafruitBleResetPin D4
#define AdafruitBleCSPin B4
#define AdafruitBleIRQPin E6
#define AdafruitBleIRQPin E6

#define VIA_HAS_BROKEN_KEYCODES
2 changes: 2 additions & 0 deletions keyboards/tokyokeyboard/alix40/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.
#define AdafruitBleCSPin B4
#define AdafruitBleIRQPin E6
#define BATTERY_LEVEL_PIN B6

#define VIA_HAS_BROKEN_KEYCODES
3 changes: 2 additions & 1 deletion keyboards/ymd75/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
LTO_ENABLE = yes
KEY_LOCK_ENABLE = no
4 changes: 4 additions & 0 deletions quantum/quantum_keycodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,11 @@ enum quantum_keycodes {

MIDI_VELOCITY_MIN,
MI_VEL_0 = MIDI_VELOCITY_MIN,
#ifdef VIA_ENABLE
MI_VEL_1 = MIDI_VELOCITY_MIN,
#else
MI_VEL_1,
#endif
MI_VEL_2,
MI_VEL_3,
MI_VEL_4,
Expand Down
1 change: 1 addition & 0 deletions quantum/via.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "dynamic_keymap.h"
#include "tmk_core/common/eeprom.h"
#include "version.h" // for QMK_BUILDDATE used in EEPROM magic
#include "via_ensure_keycode.h"

// Forward declare some helpers.
#if defined(VIA_QMK_BACKLIGHT_ENABLE)
Expand Down
Loading

0 comments on commit 0779c34

Please sign in to comment.