All input device add-ons should already do this, but make sure that

mouse messages have a "when" field with the event system time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26328 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-07-08 20:29:18 +00:00
parent d36ae78cc6
commit 264df95726

View File

@ -1492,6 +1492,9 @@ InputServer::_SanitizeEvents(EventList& events)
PRINT(("new position : %f, %f\n", fMousePos.x, fMousePos.y));
}
if (!event->HasInt64("when"))
event->AddInt64("when", system_time());
event->AddInt32("modifiers", fKeyInfo.modifiers);
break;
}