[v2 1/2] winejoystick.drv: Add functionality to disable joystick via registry
Ken Thomases
ken at codeweavers.com
Mon Aug 29 14:46:42 CDT 2016
On Aug 29, 2016, at 6:03 AM, David Lawrie <david.dljunk at gmail.com> wrote:
>
> + get_app_key(&hkey, &appkey);
> +
> + /* Joystick settings are in the 'joysticks' subkey */
> + if (appkey)
> + {
> + if (RegOpenKeyA(appkey, joystick_key, &temp)) temp = 0;
> + RegCloseKey(appkey);
> + appkey = temp;
> + }
> + if (hkey)
> + {
> + if (RegOpenKeyA(hkey, joystick_key, &temp)) temp = 0;
> + RegCloseKey(hkey);
> + hkey = temp;
> + }
It seems the appending of the Joysticks subkey should be done in get_app_key().
-Ken
More information about the wine-devel
mailing list