mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-10 07:33:04 +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/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define POINTING_DEVICE_AUTO_MOUSE_ENABLE
|
||||||
#ifdef POINTING_DEVICE_AUTO_MOUSE_ENABLE
|
#ifdef POINTING_DEVICE_AUTO_MOUSE_ENABLE
|
||||||
|
|
||||||
# include <stdlib.h>
|
# 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) {
|
static bool is_mouse_record(uint16_t keycode, keyrecord_t* record) {
|
||||||
// allow for keyboard to hook in and override if need be
|
// 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user