I have implemented a check for G-Keys being pressed in a Windows Forms Application (C#) using the Logitech G-Key Macro SDK. Specifically using a wrapper class and the supplied LogitechGkeyEnginesWrapper.dll exactly as it suggests in the documentation (included in the SDK).
This works perfectly when my application has focus, and when any child windows have focus. I can check via a callback or an update call (as suggested in the docs) but neither work when my application does not have focus.
I am hoping to capture this input (of the G-Keys only) outside of application focus (global). I do not believe these keys send a scan code and the G-Key Macro SDK is required to get the state of this keyboard/mouse key.
Any help would be greatly appreciated. I have sent an email to Logitech Dev Support regarding this, but have not received anything back at this time.
Link to Logitech Developers page: http://gaming.logitech.com/en-au/developers