haskell / win32

Haskell support for the Win32 API
http://hackage.haskell.org/package/Win32
Other
97 stars 63 forks source link

Winuser.h bindings? #128

Open YellowOnion opened 5 years ago

YellowOnion commented 5 years ago

I've been wanting raw input directly from windows, but I can't find any of the bindings explained here: https://docs.microsoft.com/en-nz/windows/desktop/inputdev/raw-input

lambdaheart commented 5 years ago

I'd like to know this as well. I was just browsing the documentation and couldn't find anything about GetActiveWindow, also from Winuser.h:

https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-getactivewindow

Mistuke commented 5 years ago

GetActiveWindow is in https://github.com/haskell/win32/blob/c5f1d13f2edc19aceb87503cd20861d9b94b1cca/Graphics/Win32/Key.hsc#L191

The API bindings are added on demand. The Direct Input ones are indeed missing as no one has requested them before. I'm more than happy to accept a pull request for them if not I will get to it eventually but can't give an ETA.