Open sedyh opened 1 month ago
Maybe https://stackoverflow.com/questions/10967795/directinput8-enumdevices-sometimes-painfully-slow
EDIT: Oh yes, you have already noted that
Oh yes, you have already noted that
Yeah. It's very strange that this doesn't happen on other directx based games.
DirectInput 8 might be pretty outdated so I would replace it with a new one.
I'll be glad to retest this after the update.
This can happen with other engines
Looks like a possible fix? https://github.com/godotengine/godot/issues/20566#issuecomment-1730345450
What about updating directinput?
What about updating directinput?
You mean injecting some code for DirectInput (https://raw.githubusercontent.com/funkkiy/godot/8cc66b6f940ec77df624cf7f0124f6bfaf75dafb/platform/windows/hid_proxy.cpp) rather than updating DirectInput?
This overwrites HidD_GetProductString
and I don't know it is possible to do this. Would we need something like LD_PRELOAD
?
EDIT: Even if it is possible, Windows antivirtus software tends to warn or ban software using tricky hacks for DLL https://news.ycombinator.com/item?id=26984206
You mean injecting some code
That was the first question.
Rather than updating DirectInput
And that was the second separate question about how difficult/long it will be to make this update.
I heard that SDL had a blacklist for this kind of devices but this doesn't seem like a solution, except for cases where this device is simply connected nearby and not used (and in our case its intended to be used).
IIUC, adding a device to a blocklist doesn't work since this would not prevent DirectInput from enumerating connected devices.
Ebitengine Version
2.8+ (6452cbc)
Operating System
Go Version (
go version
)go version go1.23.1 linux/amd64
What steps will reproduce the problem?
Buy one of
DEXP Storm Pro
orRedragon Inferno Pro
usb headset:Connect it to usb on
Windows 10 Pro 22H2 19045.4780
.Run the example:
What is the expected result?
https://github.com/user-attachments/assets/8e43bffd-4bf9-415b-92ca-5df184bc3b23
What happens instead?
profile-inside.zip
Related: https://stackoverflow.com/questions/10967795/directinput8-enumdevices-sometimes-painfully-slow
*The owner said that it does not happens in any other game / game engine.
Anything else you feel useful to add?
.