fix(automouse): restrict is mouse record to is_mouse_record_kb
Some checks failed
Build firmware / build-firmware (oryx) (push) Failing after 4s
Build firmware / build-firmware (default) (push) Failing after 5s
Unit Tests / test (push) Failing after 5s

This commit is contained in:
Florian Didron
2025-10-27 19:40:16 +07:00
parent 0cbe2e9eb8
commit b28b87daab

View File

@@ -15,6 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define POINTING_DEVICE_AUTO_MOUSE_ENABLE
#ifdef POINTING_DEVICE_AUTO_MOUSE_ENABLE
# include <stdlib.h>
@@ -459,7 +460,7 @@ bool process_auto_mouse(uint16_t keycode, keyrecord_t* record) {
*/
static bool is_mouse_record(uint16_t keycode, keyrecord_t* record) {
// allow for keyboard to hook in and override if need be
if ((is_mouse_record_kb(keycode, record) || IS_MOUSEKEY(keycode))) return true;
if (is_mouse_record_kb(keycode, record)) return true;
return false;
}