mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 11:15:28 +00:00
[Input] Removed pointless MouseDevice.SetState
MouseDevice state should only be modified through its HandleMouse* methods, not directly.
This commit is contained in:
parent
4b115c443b
commit
7af710f4dd
|
@ -197,32 +197,27 @@ namespace OpenTK.Input
|
|||
|
||||
#region --- Internal Members ---
|
||||
|
||||
internal void SetState(MouseState state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
internal void HandleMouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
SetState(e.Mouse);
|
||||
state = e.Mouse;
|
||||
ButtonDown(this, e);
|
||||
}
|
||||
|
||||
internal void HandleMouseUp(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
SetState(e.Mouse);
|
||||
state = e.Mouse;
|
||||
ButtonUp(this, e);
|
||||
}
|
||||
|
||||
internal void HandleMouseMove(object sender, MouseMoveEventArgs e)
|
||||
{
|
||||
SetState(e.Mouse);
|
||||
state = e.Mouse;
|
||||
Move(this, e);
|
||||
}
|
||||
|
||||
internal void HandleMouseWheel(object sender, MouseWheelEventArgs e)
|
||||
{
|
||||
SetState(e.Mouse);
|
||||
state = e.Mouse;
|
||||
WheelChanged(this, e);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue