Don't use magic values

This commit is contained in:
gdkchan 2018-02-28 20:27:58 -03:00
parent 0aed923082
commit 281fdb871d
2 changed files with 14 additions and 1 deletions

View file

@ -142,7 +142,9 @@ namespace Ryujinx.Core.Input
WriteInt32(ControllerOffset + 0x1c, LeftStick.DY);
WriteInt64(ControllerOffset + 0x20, RightStick.DX);
WriteInt64(ControllerOffset + 0x24, RightStick.DY);
WriteInt64(ControllerOffset + 0x28, 3);
WriteInt64(ControllerOffset + 0x28,
(uint)HidControllerConnState.Controller_State_Connected |
(uint)HidControllerConnState.Controller_State_Wired);
}
public void SetTouchPoints(params HidTouchPoint[] Points)

View file

@ -0,0 +1,11 @@
using System;
namespace Ryujinx.Core.Input
{
[Flags]
public enum HidControllerConnState
{
Controller_State_Connected = (1 << 0),
Controller_State_Wired = (1 << 1)
}
}