Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using libuiohook with other libraries that take keyboard input #33

Open
lilmike opened this issue Dec 17, 2015 · 4 comments
Open

using libuiohook with other libraries that take keyboard input #33

lilmike opened this issue Dec 17, 2015 · 4 comments

Comments

@lilmike
Copy link

lilmike commented Dec 17, 2015

Hi,
I am using allegro to get keyboard input, and really all I wanted was to get a keyboard hook on all platforms (as I am making mainly audiogames, aimed at the blind, and some screen readers, namely jaws for windows, hog the keyboard unless turned off, or an application specific hook set to override its hook). However, when I run my program with libuiohook installed, I get a bunch of log messages (btw, how to make those go away?), and allegro doesn't get any keyboard input. Any way to make allegro play nice with libuiohook?
Thanks,
-Michael.

@lilmike
Copy link
Author

lilmike commented Dec 17, 2015

Oh and my code can be found here: https://github.com/2mb-solutions/bash-it
-Michael.

@kwhat
Copy link
Owner

kwhat commented Dec 17, 2015

You can control the logging by calling the the hook_set_logger_proc() method with a custom callback. Just match the signature bool uiohook_logger_callback(unsigned int level, const char *format, ...); I am not sure how to answer your entire question because I don't know enough about allegro. You would need to dig though the allegro source to see how they are getting keyboard input. All input sent by this library should be detectable by SetWindowsHookEx on Windows. I am assuming you are having this problem on Windows?

@lilmike
Copy link
Author

lilmike commented Dec 17, 2015

I am having this problem on windows, though I haven't tried on mac or
linux yet. I will ask on the allegro forums and get back with you.
-Michael.

On 12/17/2015 10:27 AM, Alex Barker wrote:

You can control the logging by calling the the hook_set_logger_proc()
method with a custom callback. Just match the signature |bool
uiohook_logger_callback(unsigned int level, const char *format, ...);|
I am not sure how to answer your entire question because I don't know
enough about allegro. You would need to dig though the allegro source
to see how they are getting keyboard input. All input sent by this
library should be detectable by |SetWindowsHookEx| on Windows. I am
assuming you are having this problem on Windows?


Reply to this email directly or view it on GitHub
#33 (comment).

@kwhat
Copy link
Owner

kwhat commented Jan 26, 2016

I wonder if they are using WINAPI OpenDesktop. See: kwhat/jnativehook#86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants