[Input] Removed pointless MouseDevice.SetState

MouseDevice state should only be modified through its HandleMouse*
methods, not directly.
This commit is contained in:
thefiddler 2014-05-04 16:58:24 +02:00
parent 4b115c443b
commit 7af710f4dd

View file

@ -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);
}