Hi. I am trying to write functions for RawInput in wine. If understand correctly GetRawInputDeviceList function gives us an array of rawinputdevice's registered with function RegisterRawInputDevices. So implementing it would be just geting and setting data in array. But I have two question: 1) Where should i put this array? In which file? 2) How can I get data to fill the begining of the array (according to my tests when Windows has only mouse and keyboard connected there are 4 input devices) Regards Michael.
Michał Majchrowicz wrote:
Hi. I am trying to write functions for RawInput in wine. If understand correctly GetRawInputDeviceList function gives us an array of rawinputdevice's registered with function RegisterRawInputDevices. So implementing it would be just geting and setting data in array. But I have two question:
- Where should i put this array? In which file?
dlls/user32/input.c seems appropriate.
- How can I get data to fill the begining of the array (according
to my tests when Windows has only mouse and keyboard connected there are 4 input devices) Regards Michael.
That would probably depend on implementation. I'm not sure how you want to get that data. Also don't forget that you will have to "kill" or the "legacy" messages for specified window. That might be a problem with the rest of the Wine.
One more thing, according to msdn this is available only in winxp+. So the program that depends on this, won't work on win2k and bellow.
Vitaliy.