RehabMan / OS-X-Voodoo-PS2-Controller

Contains updated Voodoo PS/2 Controller, improved Keyboard & Synaptics TouchPad
Other
489 stars 179 forks source link

Ignore built-in trackpad when mouse or wireless trackpad is present #159

Closed the-darkvoid closed 6 years ago

the-darkvoid commented 6 years ago

VoodooI2CHID can now listen for USB or Bluetooth HID devices connecting to the system.

If the device is found to be a pointer device (mouse, trackpad etc), this will disable the built-in trackpad automatically.

Both ApplePS2Mouse and ApplePS2SynapticsTouchPad, can use this with two new configuration values:

Besides the kext level configuration, the user preference from macOS is taken into account: System -> Preferences -> Accessibility -> Mouse & Trackpad -> Ignore built-in trackpad when mouse or wireless trackpad is present

This deprecates VoodooPS2Daemon and additionally adds support for Bluetooth HID devices. Though with Bluetooth there can be a slight delay before the disconnection is detected and the touchpad re-enabled, hence its functionality is configurable.

Touchpad enabling and disabling via the PrtScr button works at any time.

RehabMan commented 6 years ago

Testing with my 4540s... The 4540s has an LED indicator for trackpad disables (lights up when disabled). That LED is not being updated when the trackpad is enabled/disabled with USB mouse unplug/plug. (the actual enable/disable of the trackpad is working though, the LED just doesn't reflect the change)

Will investigate.

Edit: (fixed) There were some missing calls to updateTouchpadLED.

RehabMan commented 6 years ago

Will merge + push build 2018-09-23 or earlier.