Browse files

[Platform] Fixed OnMouseDown/Up events for secondary buttons

  • Loading branch information...
1 parent a30af54 commit 9255fdcdb43f6f16ef45656ae16f2190fadcad2d @thefiddler thefiddler committed May 13, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 Source/OpenTK/Platform/NativeWindowBase.cs
View
4 Source/OpenTK/Platform/NativeWindowBase.cs
@@ -232,6 +232,8 @@ protected void OnMouseDown(MouseButton button)
MouseState[button] = true;
var e = MouseDownArgs;
+ e.Button = button;
+ e.IsPressed = true;
e.Mouse = MouseState;
MouseDown(this, e);
@@ -242,6 +244,8 @@ protected void OnMouseUp(MouseButton button)
MouseState[button] = false;
var e = MouseUpArgs;
+ e.Button = button;
+ e.IsPressed = false;
e.Mouse = MouseState;
MouseUp(this, e);

0 comments on commit 9255fdc

Please sign in to comment.