Look at this registry key:
[HKEY_CURRENT_USER\System\CurrentControlSet\Control\MediaProperties\PrivateProperties\Joystick\OEM\VID_0079&PID_0011]
"OEMName"="USB Gamepad "
"OEMData"=hex:00,00,00,10,0a,00,00,00
As you can see, there is key named OEMData and it has a binary (hex) value, it is related to joystick, I know that the numbers of joystick’s buttons is stored here, I mean for example if a joystick has 10 button it is written here, I want to know how can I find out it, I mean I want to know this joystick has how many buttons.
Really need it so any help is greatly appreciated
Don’t use the registry, use a documented API function. Like IDirectInputDevice8::GetCapabilities(). The returned DIDEVCAPS.dwButtons tells you how many buttons are available on the joystick.