dispose event

This commit is contained in:
emmaus 2018-08-11 18:23:45 +00:00
parent 4ca2f0286e
commit 4ab4bf3c5b

View file

@ -2,11 +2,12 @@ using Ryujinx.HLE.Input;
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle.Ipc;
using Ryujinx.HLE.OsHle.Handles;
using System;
using System.Collections.Generic;
namespace Ryujinx.HLE.OsHle.Services.Hid
{
class IHidServer : IpcService
class IHidServer : IpcService, IDisposable
{
private Dictionary<int, ServiceProcessRequest> m_Commands;
@ -281,5 +282,18 @@ namespace Ryujinx.HLE.OsHle.Services.Hid
return 0;
}
public void Dispose()
{
Dispose(true);
}
protected virtual void Dispose(bool Disposing)
{
if (Disposing)
{
NpadStyleSetUpdateEvent.Dispose();
}
}
}
}