Open lilmike opened 8 years ago
Oh and my code can be found here: https://github.com/2mb-solutions/bash-it -Michael.
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?
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 https://github.com/kwhat/libuiohook/issues/33#issuecomment-165501027.
I wonder if they are using WINAPI OpenDesktop. See: https://github.com/kwhat/jnativehook/issues/86
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.