This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 102
unable to use with console applications on Windows #55
Comments
GaInput requires using HWND through WinAPI to work with a keyboard/mouse etc. So, if you want to monitorize the keyboard in console you may take a look at this: Detect function keys in c++ console. |
One thing you could try is you can create a native windows application (something that starts with a WinMain and get's a handle passed in right away) but don't create a native win form window. Instead you can create a Console window with AllocConsole. |
|
Ok forget it. I assumed you need a HINSTANCe to get access to the window, but you need a HWND handle. I couldnt find a way to get a handle. for the console... |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I want to use your library to monitorize the keyboard on console application (without windows). is it possible or is it compulsory to have a HWND?
Regards,
The text was updated successfully, but these errors were encountered: