# Copyright (c) 2022 The ZMK Contributors # SPDX-License-Identifier: MIT DT_COMPAT_ZMK_INPUT_PS2_MOUSE := zmk,input-mouse-ps2 config ZMK_INPUT_MOUSE_PS2 bool default $(dt_compat_enabled,$(DT_COMPAT_ZMK_INPUT_PS2_MOUSE)) depends on (!ZMK_SPLIT || ZMK_SPLIT_ROLE_CENTRAL) select ZMK_MOUSE select PS2 config ZMK_INPUT_MOUSE_PS2_ENABLE_PS2_RESEND_CALLBACK bool "Get notifications from the underluing PS2 protocol driver when the received data is invalid and when a resend is requested from the peripheral. This helps the mouse driver to re-align its command buffer and prevent unexpected clicks and jerky movements. With the ps2-uart driver this option is not really necessary, but is very useful for the ps2-gpio driver where mis-transmissions are frequent." default n if ZMK_INPUT_MOUSE_PS2 config ZMK_INPUT_MOUSE_PS2_ENABLE_UROB_COMPAT bool "Makes the driver compatible with urob's zmk fork. His fork has commits that change the default zmk function definitions. This option adopts the code to make it compatible with his changes. Only enable it if you are using his fork or it will fail to compile." default n config ZMK_INPUT_MOUSE_PS2_ENABLE_ERROR_MITIGATION bool "Tries to mitigate transmission errors. Only useful when using a PS2 driver that is prone to miscommunication like the GPIO bitbanging driver." default n endif # ZMK_INPUT_MOUSE_PS2