Relocate remaining process_record_quantum keycodes (#25328)

This commit is contained in:
Joel Challis 2025-06-03 23:44:46 +01:00 committed by GitHub
parent 53c6fa5de7
commit f096e5a3f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 136 additions and 75 deletions

View file

@ -0,0 +1,25 @@
// Copyright 2025 QMK
// SPDX-License-Identifier: GPL-2.0-or-later
#include "process_oneshot.h"
#include "action_util.h"
bool process_oneshot(uint16_t keycode, keyrecord_t *record) {
#ifndef NO_ACTION_ONESHOT
if (record->event.pressed) {
switch (keycode) {
case QK_ONE_SHOT_TOGGLE:
oneshot_toggle();
return false;
case QK_ONE_SHOT_ON:
oneshot_enable();
return false;
case QK_ONE_SHOT_OFF:
oneshot_disable();
return false;
}
}
#endif
return true;
}