-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hey,
I am currently trying to get rid of fake mouse input events generated by touch events on windows.
There seems to have been a fix for this in place some time ago, but it is currently commented out in the engine source:
#if WINVER >= 0x0601
// ORION - REMOVED FOR WACOM SUPPORT!
/*
if (IsFakeMouseInputMessage(msg))
{
return 0;
}
*/
#endifAnd returning true ("handled") for these events in your plugin doesn't work because it only sets "bMessageExternallyHandled" to true, but this boolean is only considered for events that weren't handled by the engine at all.
Is there any other way to fix this while still using the launcher version of the engine?
Here the code I am currently using for detecting fake mouse events:
virtual bool ProcessMessage(HWND Hwnd, uint32 Message, WPARAM WParam, LPARAM LParam, int32& OutResult) override
{
if (Message == WM_LBUTTONUP || Message == WM_LBUTTONDOWN)
{
if ((GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) == MOUSEEVENTF_FROMTOUCH)
{
GEngine->AddOnScreenDebugMessage(INDEX_NONE, 5.0f, FColor::Red, TEXT("Input was Touch"));
return true;
}
else
{
GEngine->AddOnScreenDebugMessage(INDEX_NONE, 5.0f, FColor::Red, TEXT("Input was Non-Touch"));
}
}
return false;
}Thank you
Metadata
Metadata
Assignees
Labels
No labels