mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-12 11:08:56 +00:00
Add USB passthrough setting and USBUtils
This adds a USB passthrough setting to ConfigManager and everything needed for the UI to show and manage the whitelist properly.
This commit is contained in:
parent
e4d20647d4
commit
69a13a12e2
7 changed files with 161 additions and 1 deletions
20
Source/Core/UICommon/USBUtils.h
Normal file
20
Source/Core/UICommon/USBUtils.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2017 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
namespace USBUtils
|
||||
{
|
||||
void Init();
|
||||
void Shutdown();
|
||||
|
||||
std::map<std::pair<u16, u16>, std::string> GetInsertedDevices();
|
||||
std::string GetDeviceName(std::pair<u16, u16> vid_pid);
|
||||
} // namespace USBUtils
|
Loading…
Add table
Add a link
Reference in a new issue