M
martinonwindows
Guest
Hi all,
im trying to develop a small Windows Application (win32) which reacts to mouse/touch activities. The application should run in background and has a small Icon on the screen. While user input is detected the icon should change its color.
For detecting user input (mouse/touch/keyboard) i use windows hooks but i have problems detecting touch input when multitouch is activated. In multitouch mode some user input does call my callback function "MouseLLHookEvent", some not. Input in 3rd party applications are caught, but input in some windows system windows are not. For example: touch input at the windows Action Center does not call my callback function "MouseLLHookEvent" in multitouch mode (in single touch mode the input is caught there). The multitouch sensor is connected via USB, driver is a HID driver. Can somebody help me what could be the problem in multitouch mode why i cant get the touchevents in these cases?
I am using the WH_MOUSE_LL.
LRESULT CALLBACK MouseLLHookEvent(const int code, const WPARAM wordParameter, const LPARAM longParamter)
{
return ::CallNextHookEx(NULL, code, wordParameter, longParamter);
}
HHOOK mousehook = SetWindowsHookEx(WH_MOUSE_LL, MouseLLHookEvent, NULL, 0);
Thank you for any advice in advance. I am also curious about alternative ways to get the input events. I already had a look at filter drivers but this seems a lot more complicated.
BR
Martin
Continue reading...
im trying to develop a small Windows Application (win32) which reacts to mouse/touch activities. The application should run in background and has a small Icon on the screen. While user input is detected the icon should change its color.
For detecting user input (mouse/touch/keyboard) i use windows hooks but i have problems detecting touch input when multitouch is activated. In multitouch mode some user input does call my callback function "MouseLLHookEvent", some not. Input in 3rd party applications are caught, but input in some windows system windows are not. For example: touch input at the windows Action Center does not call my callback function "MouseLLHookEvent" in multitouch mode (in single touch mode the input is caught there). The multitouch sensor is connected via USB, driver is a HID driver. Can somebody help me what could be the problem in multitouch mode why i cant get the touchevents in these cases?
I am using the WH_MOUSE_LL.
LRESULT CALLBACK MouseLLHookEvent(const int code, const WPARAM wordParameter, const LPARAM longParamter)
{
return ::CallNextHookEx(NULL, code, wordParameter, longParamter);
}
HHOOK mousehook = SetWindowsHookEx(WH_MOUSE_LL, MouseLLHookEvent, NULL, 0);
Thank you for any advice in advance. I am also curious about alternative ways to get the input events. I already had a look at filter drivers but this seems a lot more complicated.
BR
Martin
Continue reading...