mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-19 08:37:54 +00:00
[Input] Removed pointless unsafe region
This commit is contained in:
parent
1096a8802a
commit
268e8fccde
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue