mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-08 22:52:28 +00:00
fix(automouse): restrict is mouse record to is_mouse_record_kb
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user