Changes to UI drag behavior:
- Multi-touch drag support
- Combo touch support -- you get id mask of pressed buttons + number of buttons + the average of their positions
- OnDrag* signature updates, with more information available and improved OnDragCancel / E_DRAGCANCEL support.
A sample showing how to use UI drag features (drag begin/move/end/cancel and how to use most of the event data), and it can be used to demonstrate multi-touch drag support on touch-enabled devices.
Added a range check on GetDragElement(unsigned).
Exposed UIElement::GetDragButtonCombo and UIElement::GetDragButtonCount to Lua script, and adjusted their signatures.
Added Lua and AngelScript versions of Sample.
Added UIElement::GetDragButtonCount / UIElement::GetDragButtonCombo bindings to AngelScript.
Clean up + included a by-pass in UI.cpp to allow for drag move and drag end to occur when Input::IsMouseGrabbed() is true (allowing existing events to continue, preventing new events from triggering).
Merge remote-tracking branch 'remotes/hdunderscore/UI_Drag_Update'
Normalize touch ID's to touch indices to ensure the first touch always works as the "left mousebutton" in the UI.
Merge branch 'master' of https://github.com/urho3d/Urho3D