Commit f7a82ddb authored by Tebjan Halm's avatar Tebjan Halm
Browse files

added click count to click method and mousearg

parent f9088cab
...@@ -666,21 +666,21 @@ namespace Svg ...@@ -666,21 +666,21 @@ namespace Svg
[SvgAttribute("onmouseout")] [SvgAttribute("onmouseout")]
public event EventHandler MouseOut; public event EventHandler MouseOut;
protected void OnClick(float x, float y, int button) protected void OnClick(float x, float y, int button, int clickCount)
{ {
var handler = Click; var handler = Click;
if(handler != null) if(handler != null)
{ {
handler(this, new MouseArg { x = x, y = y, Button = button}); handler(this, new MouseArg { x = x, y = y, Button = button, ClickCount = clickCount});
} }
} }
protected void OnMouseDown(float x, float y, int button) protected void OnMouseDown(float x, float y, int button, int clickCount)
{ {
var handler = MouseDown; var handler = MouseDown;
if (handler != null) if (handler != null)
{ {
handler(this, new MouseArg { x = x, y = y, Button = button }); handler(this, new MouseArg { x = x, y = y, Button = button});
} }
} }
...@@ -689,7 +689,7 @@ namespace Svg ...@@ -689,7 +689,7 @@ namespace Svg
var handler = MouseUp; var handler = MouseUp;
if (handler != null) if (handler != null)
{ {
handler(this, new MouseArg { x = x, y = y, Button = button }); handler(this, new MouseArg { x = x, y = y, Button = button});
} }
} }
...@@ -746,6 +746,8 @@ namespace Svg ...@@ -746,6 +746,8 @@ namespace Svg
/// 1 = left, 2 = middle, 3 = right /// 1 = left, 2 = middle, 3 = right
/// </summary> /// </summary>
public int Button; public int Button;
public int ClickCount = -1;
} }
/// <summary> /// <summary>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment