mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
ControllerInterface/Device: Make DetectInput() a const member function
This doesn't actually modify object instance state, so it can be made const.
This commit is contained in:
parent
27346fee8a
commit
0263435050
@ -256,7 +256,7 @@ bool DeviceContainer::HasConnectedDevice(const DeviceQualifier& qualifier) const
|
|||||||
// and also properly handles detection when using "FullAnalogSurface" inputs.
|
// and also properly handles detection when using "FullAnalogSurface" inputs.
|
||||||
// Upon input, return the detected Device and Input, else return nullptrs
|
// Upon input, return the detected Device and Input, else return nullptrs
|
||||||
std::pair<std::shared_ptr<Device>, Device::Input*>
|
std::pair<std::shared_ptr<Device>, Device::Input*>
|
||||||
DeviceContainer::DetectInput(u32 wait_ms, const std::vector<std::string>& device_strings)
|
DeviceContainer::DetectInput(u32 wait_ms, const std::vector<std::string>& device_strings) const
|
||||||
{
|
{
|
||||||
struct InputState
|
struct InputState
|
||||||
{
|
{
|
||||||
|
@ -188,7 +188,7 @@ public:
|
|||||||
bool HasConnectedDevice(const DeviceQualifier& qualifier) const;
|
bool HasConnectedDevice(const DeviceQualifier& qualifier) const;
|
||||||
|
|
||||||
std::pair<std::shared_ptr<Device>, Device::Input*>
|
std::pair<std::shared_ptr<Device>, Device::Input*>
|
||||||
DetectInput(u32 wait_ms, const std::vector<std::string>& device_strings);
|
DetectInput(u32 wait_ms, const std::vector<std::string>& device_strings) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
mutable std::mutex m_devices_mutex;
|
mutable std::mutex m_devices_mutex;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user