Don't use magic values
This commit is contained in:
parent
0aed923082
commit
281fdb871d
2 changed files with 14 additions and 1 deletions
|
@ -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)
|
||||
|
|
11
Ryujinx.Core/Hid/HidControllerConnState.cs
Normal file
11
Ryujinx.Core/Hid/HidControllerConnState.cs
Normal 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)
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue