[Platform] Fixed OnMouseDown/Up events for secondary buttons

This commit is contained in:
thefiddler 2014-05-13 22:53:47 +02:00
parent a30af547f9
commit 9255fdcdb4

View file

@ -232,6 +232,8 @@ namespace OpenTK.Platform
MouseState[button] = true; MouseState[button] = true;
var e = MouseDownArgs; var e = MouseDownArgs;
e.Button = button;
e.IsPressed = true;
e.Mouse = MouseState; e.Mouse = MouseState;
MouseDown(this, e); MouseDown(this, e);
@ -242,6 +244,8 @@ namespace OpenTK.Platform
MouseState[button] = false; MouseState[button] = false;
var e = MouseUpArgs; var e = MouseUpArgs;
e.Button = button;
e.IsPressed = false;
e.Mouse = MouseState; e.Mouse = MouseState;
MouseUp(this, e); MouseUp(this, e);