Merge pull request #4903 from leoetlino/usb-kbd-stub

IOS/USB_KBD: Re-add the Write stub handler
This commit is contained in:
Pierre Bourdon 2017-02-12 16:33:02 +01:00 committed by GitHub
commit 047394c099
2 changed files with 7 additions and 0 deletions

View File

@ -62,6 +62,12 @@ ReturnCode USB_KBD::Open(const OpenRequest& request)
return IPC_SUCCESS;
}
IPCCommandResult USB_KBD::Write(const ReadWriteRequest& request)
{
// Stubbed.
return GetDefaultReply(IPC_SUCCESS);
}
IPCCommandResult USB_KBD::IOCtl(const IOCtlRequest& request)
{
if (SConfig::GetInstance().m_WiiKeyboard && !Core::g_want_determinism && !m_MessageQueue.empty())

View File

@ -23,6 +23,7 @@ public:
USB_KBD(u32 device_id, const std::string& device_name);
ReturnCode Open(const OpenRequest& request) override;
IPCCommandResult Write(const ReadWriteRequest& request) override;
IPCCommandResult IOCtl(const IOCtlRequest& request) override;
void Update() override;