[Platform] Fixed OnMouseDown/Up events for secondary buttons
This commit is contained in:
parent
a30af547f9
commit
9255fdcdb4
1 changed files with 4 additions and 0 deletions
|
@ -232,6 +232,8 @@ namespace OpenTK.Platform
|
|||
MouseState[button] = true;
|
||||
|
||||
var e = MouseDownArgs;
|
||||
e.Button = button;
|
||||
e.IsPressed = true;
|
||||
e.Mouse = MouseState;
|
||||
|
||||
MouseDown(this, e);
|
||||
|
@ -242,6 +244,8 @@ namespace OpenTK.Platform
|
|||
MouseState[button] = false;
|
||||
|
||||
var e = MouseUpArgs;
|
||||
e.Button = button;
|
||||
e.IsPressed = false;
|
||||
e.Mouse = MouseState;
|
||||
|
||||
MouseUp(this, e);
|
||||
|
|
Loading…
Reference in a new issue