Legacy Touchpad PC Settings Opt-In
This topic describes how devices that are not Windows Precision Touchpads can opt in to various settings that are exposed in Windows 8.1 to provide a simple and easy-to-navigate inbox solution to manage the most common touchpad settings.
PC Settings in Windows 8.1 exposes the following four settings for Windows Precision Touchpads:
- Edge gesture enable/disable
- Scroll direction normal/inverted
- Strength of inbox accidental activation prevention (AAP)
Legacy touchpad helper applications can opt-in to the enable/disable setting, and optionally the edgy enable/disable and scroll direction settings.
- To participate in the opt-in program, a touchpad applet must be able to toggle the enable/disable touchpad setting.
- The opt-in program requires setting a registry value and consuming registry changes at run-time to change touchpad behavior. This mechanism is only available to user-mode helper applications that are associated with legacy touchpads, and is therefore not supported on WoA (Windows on ARM) platforms.
- This opt-in program is specifically targeted to clamshell and convertible systems and is not supported on slate systems that provide an external dock with a legacy touchpad, because those systems can switch accessories that can have differing capability levels.
To specify which settings a touchpad applet can consume through the opt-in program, you must specify a DWORD under the following registry key, with the name string equal to the HWID string for the device for which it is opting in. This opt-in is global; that is, all users will see the opted-in settings as available in the modern settings applet.
The value of that DWORD specifies which settings are to be consumed by the applet in the form of a bitmask.
For example, for a device that has HWID (ACPI\MSFT0001) to opt in to just enable/disable and scroll direction, it would create a DWORD as follows:
If a modern touchpad with HWID (HID\VID_045E&PID_003F&REV_03FF) wanted to opt in to all settings, it would create a DWORD as follows:
If you import or export from the registry, the “\” will be duplicated as “\\” because this is a delimiting character. If you paste by using the Registry Editor, ignore the extra delimiter.
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PrecisionTouchPad\LegacyControlled] "HID\\VID_045E&PID_003F&REV_03FF"=dword:00000007 "ACPI\\MSFT0001"=dword:00000005
For more information, see HIDClass Hardware IDs for Top-Level Collections.
Settings change consumption
Although the opt-in by the touchpad helper application is global, the settings themselves are customized on a per-user basis. To consume the settings changes, the helper application must register for registry change notifications that are associated with the following key and its sub-keys and act on those changes.
If there is no logged-on user, default settings should be used so that the touchpad is enabled and scroll direction is normal (not inverted).
To do this, use the RegNotifyChangeKey() function and specify the bWatchSubtree parameter as TRUE.
Whenever a touchpad setting is modified by the user by using the inbox PC settings, the event handle that the call specifies to RegNotifyChangeKey() is used to notify the caller.
When that event occurs, the touchpad applet shall read each of the following values as appropriate per opt-in value specified.
0 – Disabled
Non-0 – Enabled
0 – Disabled
Non-0 – Enabled
0 – Standard
Non-0 – Reverse
The values that are named in the preceding tables should only be read and never overwritten by the opt-in entity; see the following section about third-party touchpad control panels.
Third-party touchpad control panels
Any touchpad setting that has been opted in by the helper application can be displayed by a third-party control panel. However, to ensure consistency and synchronization with the inbox settings user interface (UI), the display should not be modifiable. Any custom hotkeys that were used to change settings (for example, enable/disable) should be non-functional if they impact any opted-in setting. Windows provides an inbox hotkey for enable/disable control (CTRL+WIN+F24), which an OEM can support .
If the touchpad helper application that handles the settings changes is uninstalled, the uninstall procedure should remove the opt-in that was specified under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\PrecisionTouchPad\LegacyControlled\.