waitingsong / node-win32-api

win32 api
MIT License
430 stars 55 forks source link

Can GetRawInputData be added ? #12

Open yadomi opened 5 years ago

yadomi commented 5 years ago

Would it be possible to add input related functions such as GetRawInputData, GetRawInputDeviceList and GetRawInputDeviceInfo ?

Anyhow, this is a very great package, keep up the good work !

Njanderson commented 5 years ago

This would require many dependencies, right?

I'm looking at GetRawInputData. It looks as if we would need to add the ability to add events (DefWindowProcA), which then would require that we define many new types, then eventually we could add GetRawInputData once we have the ability to even be notified that there is some RAWINPUT to be read in.

Does this sound correct to you?

Njanderson commented 5 years ago

For the latter two calls, I think that I can add these pretty easily. The author seems pretty responsive to PRs, which is nice.

waitingsong commented 5 years ago

The type Union is complex , i've no enough time currently.

waitingsong commented 2 months ago

GetRawInputData() added