diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-29 19:44:54 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-29 19:44:54 +0300 |
| commit | ac9090470eba25bb3c789f0e87ecf70e6a7be55f (patch) | |
| tree | 0b26051e6af32d7c7181024ef942da6c36c7467e /Software/Visual_Studio/Tango.Core/EventArguments | |
| parent | 378789e4c4bc694736965cb8c620883bf91b8f08 (diff) | |
| download | Tango-ac9090470eba25bb3c789f0e87ecf70e6a7be55f.tar.gz Tango-ac9090470eba25bb3c789f0e87ecf70e6a7be55f.zip | |
Working on Mouse/Touch synchronization!
Diffstat (limited to 'Software/Visual_Studio/Tango.Core/EventArguments')
| -rw-r--r-- | Software/Visual_Studio/Tango.Core/EventArguments/MouseOrTouchEventArgs.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Core/EventArguments/MouseOrTouchEventArgs.cs b/Software/Visual_Studio/Tango.Core/EventArguments/MouseOrTouchEventArgs.cs new file mode 100644 index 000000000..b2c09e41d --- /dev/null +++ b/Software/Visual_Studio/Tango.Core/EventArguments/MouseOrTouchEventArgs.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Input; + +namespace Tango.Core.EventArguments +{ + public class MouseOrTouchEventArgs : EventArgs + { + public Point Location { get; set; } + public Object Source { get; set; } + public Object OriginalSource { get; set; } + internal Func<IInputElement, Point> GetPositionAction { get; set; } + public bool Handled { get; set; } + public TouchDevice TouchDevice { get; set; } + + public Point GetPosition(IInputElement relativeTo) + { + return GetPositionAction(relativeTo); + } + } +} |
