On my system of 64-bit Windows 10 (22H2) with wxWidgets 3.2.1, wxJoystick::GetProductName() returns a blank string. This is due to the referenced registry keys not existing in HKEY_LOCAL_MACHINE but HKEY_CURRENT_USER. My simple fix was to replace the two instances of HKLM to HKCU in the aforementioned function.
Unfortunately I don’t know which version of Windows moved these keys, i.e. whether it’s also worth amending the function to try and read from HKCU first and then fall back to reading from HKLM.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Unfortunately I don't know this neither and I don't even have any joysticks to test this with, but it looks that trying HKCU first and then falling back in HKLM would work just fine in any case, so if you'd like to make a PR changing the code to do it, I'd be glad to merge it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
I can reproduce it with a controller. I need to use wxRegKey::HKCU
as well.
I also noticed the joystick sample does not work anymore. It seems to require MSWDisableComposited
(because of wxClientDC
?) . And drawing doesn't look right at high DPI. I'll fix and update the sample. I can include the registry fix as well.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Closed #23172 as completed via ab12443.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.