mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-01 05:18:25 +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 ---
|
#region --- Internal Members ---
|
||||||
|
|
||||||
internal void SetState(MouseState state)
|
|
||||||
{
|
|
||||||
this.state = state;
|
|
||||||
}
|
|
||||||
|
|
||||||
internal void HandleMouseDown(object sender, MouseButtonEventArgs e)
|
internal void HandleMouseDown(object sender, MouseButtonEventArgs e)
|
||||||
{
|
{
|
||||||
SetState(e.Mouse);
|
state = e.Mouse;
|
||||||
ButtonDown(this, e);
|
ButtonDown(this, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void HandleMouseUp(object sender, MouseButtonEventArgs e)
|
internal void HandleMouseUp(object sender, MouseButtonEventArgs e)
|
||||||
{
|
{
|
||||||
SetState(e.Mouse);
|
state = e.Mouse;
|
||||||
ButtonUp(this, e);
|
ButtonUp(this, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void HandleMouseMove(object sender, MouseMoveEventArgs e)
|
internal void HandleMouseMove(object sender, MouseMoveEventArgs e)
|
||||||
{
|
{
|
||||||
SetState(e.Mouse);
|
state = e.Mouse;
|
||||||
Move(this, e);
|
Move(this, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void HandleMouseWheel(object sender, MouseWheelEventArgs e)
|
internal void HandleMouseWheel(object sender, MouseWheelEventArgs e)
|
||||||
{
|
{
|
||||||
SetState(e.Mouse);
|
state = e.Mouse;
|
||||||
WheelChanged(this, e);
|
WheelChanged(this, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue