[Input] Removed pointless unsafe region

This commit is contained in:
thefiddler 2014-05-04 17:01:34 +02:00
parent 1096a8802a
commit 268e8fccde

View file

@ -292,14 +292,11 @@ namespace OpenTK.Input
internal void MergeBits(MouseState other) internal void MergeBits(MouseState other)
{ {
unsafe buttons |= other.buttons;
{ SetScrollRelative(other.scroll.X, other.scroll.Y);
buttons |= other.buttons; X += other.X;
SetScrollRelative(other.scroll.X, other.scroll.Y); Y += other.Y;
X += other.X; IsConnected |= other.IsConnected;
Y += other.Y;
IsConnected |= other.IsConnected;
}
} }
internal void SetIsConnected(bool value) internal void SetIsConnected(bool value)