1
0
Fork 0

Initial DD keycode migration (#18643)

* Initial DD keycode migration

* Sort magic keycodes
This commit is contained in:
Joel Challis 2022-11-05 10:30:09 +00:00 committed by GitHub
parent a070c4c501
commit a69ab05dd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 5471 additions and 1878 deletions

View file

@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "programmable_button.h"
bool process_programmable_button(uint16_t keycode, keyrecord_t *record) {
if (keycode >= QK_PROGRAMMABLE_BUTTON_MIN && keycode <= QK_PROGRAMMABLE_BUTTON_MAX) {
uint8_t button = keycode - QK_PROGRAMMABLE_BUTTON_MIN + 1;
if (IS_QK_PROGRAMMABLE_BUTTON(keycode)) {
uint8_t button = keycode - QK_PROGRAMMABLE_BUTTON + 1;
if (record->event.pressed) {
programmable_button_register(button);
} else {