mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-14 19:36:42 +00:00
27 lines
713 B
C#
27 lines
713 B
C#
|
using Ryujinx.HLE.HOS.Services.Hid;
|
||
|
using Ryujinx.HLE.HOS.Tamper.Operations;
|
||
|
|
||
|
namespace Ryujinx.HLE.HOS.Tamper
|
||
|
{
|
||
|
class AtmosphereProgram : ITamperProgram
|
||
|
{
|
||
|
private Parameter<long> _pressedKeys;
|
||
|
private IOperation _entryPoint;
|
||
|
|
||
|
public ITamperedProcess Process { get; }
|
||
|
|
||
|
public AtmosphereProgram(ITamperedProcess process, Parameter<long> pressedKeys, IOperation entryPoint)
|
||
|
{
|
||
|
Process = process;
|
||
|
_pressedKeys = pressedKeys;
|
||
|
_entryPoint = entryPoint;
|
||
|
}
|
||
|
|
||
|
public void Execute(ControllerKeys pressedKeys)
|
||
|
{
|
||
|
_pressedKeys.Value = (long)pressedKeys;
|
||
|
_entryPoint.Execute();
|
||
|
}
|
||
|
}
|
||
|
}
|